Table of Contents

Method ForSubStringFound

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

ForSubStringFound(string, int, string)

Creates a new instance of the DoesNotContainException class to be thrown when the requested sub-string was found in the string.

public static DoesNotContainException ForSubStringFound(string expectedSubString, int indexFailurePoint, string @string)

Parameters

expectedSubString string

The expected sub-string

indexFailurePoint int

The item index for where the item was found

string string

The string

Returns