Table of Contents

Method ForCollectionItemFound

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

ForCollectionItemFound(string, int, int?, string)

Creates a new instance of the DoesNotContainException class to be thrown when the requested item was found in the collection.

public static DoesNotContainException ForCollectionItemFound(string item, int indexFailurePoint, int? failurePointerIndent, string collection)

Parameters

item string

The item that was found in the collection

indexFailurePoint int

The item index for where the item was found

failurePointerIndent int?

The number of spaces needed to indent the failure pointer

collection string

The collection

Returns