Table of Contents

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

exception Exception

The exception that was thrown

indexFailurePoint int

The item index for the failed item

failurePointerIndent int?

The number of spaces needed to indent the failure pointer

formattedCollection string

The formatted collection

Returns