Table of Contents

Class TestCollectionComparer<TTestCollection>

Namespace
Xunit.v3
Assembly
xunit.v3.core.dll

An implementation of IEqualityComparer<T> for ITestCollection. Compares the IDs of the test collections.

public class TestCollectionComparer<TTestCollection> : IEqualityComparer<TTestCollection> where TTestCollection : class, ITestCollection

Type Parameters

TTestCollection

The type of the test collection. Must derive from ITestCollection.

Inheritance
TestCollectionComparer<TTestCollection>
Implements
IEqualityComparer<TTestCollection>
Inherited Members

Fields

Instance

The singleton instance of the comparer.

public static readonly TestCollectionComparer<TTestCollection> Instance

Field Value

TestCollectionComparer<TTestCollection>

Methods

Equals(TTestCollection?, TTestCollection?)

public bool Equals(TTestCollection? x, TTestCollection? y)

Parameters

x TTestCollection
y TTestCollection

Returns

bool

GetHashCode(TTestCollection)

public int GetHashCode(TTestCollection obj)

Parameters

obj TTestCollection

Returns

int