Table of Contents

Class DoesNotMatchException

Namespace
Xunit.Sdk
Assembly
xunit.v3.assert.dll

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

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

DoesNotMatchException

Exceptions

InvalidOperationException