Table of Contents

Method ForMismatchedCollectionsWithError

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

ForMismatchedCollectionsWithError(int?, string, int?, string?, string, int?, string?, Exception?, string?)

Creates a new instance of EqualException to be thrown when two collections are not equal, and an error has occurred during comparison.

public static EqualException ForMismatchedCollectionsWithError(int? mismatchedIndex, string expected, int? expectedPointer, string? expectedType, string actual, int? actualPointer, string? actualType, Exception? error, string? collectionDisplay = null)

Parameters

mismatchedIndex int?

The index at which the collections differ

expected string

The expected collection

expectedPointer int?

The spacing into the expected collection where the difference occurs

expectedType string

The type of the expected collection items, when they differ in type

actual string

The actual collection

actualPointer int?

The spacing into the actual collection where the difference occurs

actualType string

The type of the actual collection items, when they differ in type

error Exception

The optional exception that was thrown during comparison

collectionDisplay string

The display name for the collection type (defaults to "Collections")

Returns