Table of Contents

Method ForMismatchedCollections

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

ForMismatchedCollections(int?, string, int?, string?, string, int?, string?, string?)

Creates a new instance of EqualException to be thrown when two collections are not equal.

public static EqualException ForMismatchedCollections(int? mismatchedIndex, string expected, int? expectedPointer, string? expectedType, string actual, int? actualPointer, string? actualType, 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

collectionDisplay string

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

Returns