Class DoesNotMatchException
Exception thrown when Assert.DoesNotMatch fails.
public class DoesNotMatchException : XunitException, ISerializable, IAssertionException
- Inheritance
-
DoesNotMatchException
- Implements
- Inherited Members
Methods
ForMatch(string, int, int, string)
Creates a new instance of the DoesNotMatchException class, thrown when a regular expression matches the input string.
public static DoesNotMatchException ForMatch(string expectedRegexPattern, int indexFailurePoint, int failurePointerIndent, string @string)
Parameters
expectedRegexPatternstringThe expected regular expression pattern
indexFailurePointintThe item index for where the item was found
failurePointerIndentintThe number of spaces needed to indent the failure pointer
stringstringThe string matched again