Table of Contents

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

expectedRegexPattern string

The expected regular expression pattern

indexFailurePoint int

The item index for where the item was found

failurePointerIndent int

The number of spaces needed to indent the failure pointer

string string

The string matched again

Returns

Exceptions

InvalidOperationException