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
itemstringThe item that was found in the collection
indexFailurePointintThe item index for where the item was found
failurePointerIndentint?The number of spaces needed to indent the failure pointer
collectionstringThe collection