2 instantiations of MatchesException
xunit.assert (2)
StringAsserts.cs (2)
183
throw new
MatchesException
(expectedRegexPattern, actualString);
203
throw new
MatchesException
(expectedRegex.ToString(), actualString);
7 references to MatchesException
Microsoft.DotNet.XUnitAssert.Tests (4)
StringAssertsTests.cs (4)
279
Assert.Throws<
MatchesException
>(() => Assert.Matches(@"\w+", null));
293
Assert.IsType<
MatchesException
>(ex);
309
Assert.Throws<
MatchesException
>(() => Assert.Matches(new Regex(@"\w+"), null));
329
Assert.IsType<
MatchesException
>(ex);
xunit.assert (3)
Sdk\Exceptions\MatchesException.cs (1)
20
/// Creates a new instance of the <see cref="
MatchesException
"/> class.
StringAsserts.cs (2)
171
/// <exception cref="
MatchesException
">Thrown when the string does not match the regex pattern</exception>
191
/// <exception cref="
MatchesException
">Thrown when the string does not match the regex</exception>