Table of Contents

Interface IAssertEqualityComparer<T>

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

Represents a specialized version of IEqualityComparer<T> that returns information useful when formatting results for assertion failures.

public interface IAssertEqualityComparer<T> : IEqualityComparer<T>

Type Parameters

T

The type of the objects being compared.

Inherited Members
Extension Methods

Methods

Equals(T?, CollectionTracker?, T?, CollectionTracker?)

Compares two values and determines if they are equal.

AssertEqualityResult Equals(T? x, CollectionTracker? xTracker, T? y, CollectionTracker? yTracker)

Parameters

x T

The first value

xTracker CollectionTracker

The first value as a CollectionTracker (if it's a collection)

y T

The second value

yTracker CollectionTracker

The second value as a CollectionTracker (if it's a collection)

Returns

AssertEqualityResult

Success or failure information