Class TestCollectionComparer<TTestCollection>
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
TTestCollectionThe 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
xTTestCollectionyTTestCollection
Returns
GetHashCode(TTestCollection)
public int GetHashCode(TTestCollection obj)
Parameters
objTTestCollection