Method ForMismatchedItem
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.assert.dll
ForMismatchedItem(Exception, int, int?, string)
Creates an instance of the CollectionException class to be thrown when an item comparison failed
public static CollectionException ForMismatchedItem(Exception exception, int indexFailurePoint, int? failurePointerIndent, string formattedCollection)
Parameters
exceptionExceptionThe exception that was thrown
indexFailurePointintThe item index for the failed item
failurePointerIndentint?The number of spaces needed to indent the failure pointer
formattedCollectionstringThe formatted collection