Table of Contents

Class TestMethodComparer

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

An implementation of IEqualityComparer<T> for ITestMethod. Compares the names of the methods.

public class TestMethodComparer : IEqualityComparer<ITestMethod?>
Inheritance
TestMethodComparer
Implements
Inherited Members

Fields

Instance

The singleton instance of the comparer.

public static readonly TestMethodComparer Instance

Field Value

TestMethodComparer

Methods

Equals(ITestMethod?, ITestMethod?)

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

Parameters

x ITestMethod
y ITestMethod

Returns

bool

GetHashCode(ITestMethod?)

public int GetHashCode(ITestMethod? obj)

Parameters

obj ITestMethod

Returns

int