Table of Contents

Method ForSubSpanFound

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

ForSubSpanFound(string, int, int?, string)

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

public static DoesNotContainException ForSubSpanFound(string expectedSubSpan, int indexFailurePoint, int? failurePointerIndent, string span)

Parameters

expectedSubSpan string

The expected sub-span

indexFailurePoint int

The item index for where the item was found

failurePointerIndent int?

The number of spaces needed to indent the failure pointer

span string

The span

Returns