Class ComparisonAdapter
Inheritance
ComparisonAdapter
Assembly: nunit.framework.dll
Syntax
public abstract class ComparisonAdapter
Constructors
View Source
ComparisonAdapter()
Declaration
protected ComparisonAdapter()
Properties
View Source
Default
Gets the default ComparisonAdapter, which wraps an
NUnitComparer object.
Declaration
public static ComparisonAdapter Default { get; }
Property Value
Methods
View Source
Compare(object?, object?)
Declaration
public abstract int Compare(object? expected, object? actual)
Parameters
Returns
View Source
For(IComparer)
Returns a ComparisonAdapter that wraps an IComparer
Declaration
public static ComparisonAdapter For(IComparer comparer)
Parameters
Returns
View Source
For<T>(IComparer<T>)
Declaration
public static ComparisonAdapter For<T>(IComparer<T> comparer)
Parameters
Returns
Type Parameters
View Source
For<T>(Comparison<T>)
Declaration
public static ComparisonAdapter For<T>(Comparison<T> comparer)
Parameters
Returns
Type Parameters