Method ForMatch
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.assert.dll
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