Class MatchesException
Exception thrown when Assert.Matches fails.
public class MatchesException : XunitException, ISerializable, IAssertionException
- Inheritance
-
MatchesException
- Implements
- Inherited Members
Methods
ForMatchNotFound(string, string?)
Creates a new instance of the MatchesException class to be thrown when the regular expression pattern isn't found within the value.
public static MatchesException ForMatchNotFound(string expectedRegexPattern, string? actual)