xUnit.net
Classes | Public Member Functions | List of all members
Xunit.Sdk.AssertEqualityComparer< T > Class Template Reference

Default implementation of IEqualityComparer<T> used by the xUnit.net equality assertions. More...

Inheritance diagram for Xunit.Sdk.AssertEqualityComparer< T >:

Public Member Functions

 AssertEqualityComparer (IEqualityComparer innerComparer=null)
 Initializes a new instance of the AssertEqualityComparer<T> class. More...
 
bool Equals (T x, T y)
 
int GetHashCode (T obj)
 

Detailed Description

Default implementation of IEqualityComparer<T> used by the xUnit.net equality assertions.

Template Parameters
TThe type that is being compared.

Constructor & Destructor Documentation

◆ AssertEqualityComparer()

Xunit.Sdk.AssertEqualityComparer< T >.AssertEqualityComparer ( IEqualityComparer  innerComparer = null)
inline

Initializes a new instance of the AssertEqualityComparer<T> class.

Parameters
innerComparerThe inner comparer to be used when the compared objects are enumerable.

The documentation for this class was generated from the following file: