Bearbeiten

Freigeben über


ComparisonAdapter Class

Definition

ComparisonAdapter class centralizes all comparisons of values in NUnit, adapting to the use of any provided IComparer, IComparer<T> or Comparison<T>

public abstract class ComparisonAdapter
type ComparisonAdapter = class
Inheritance
ComparisonAdapter

Constructors

ComparisonAdapter()

Properties

Default

Gets the default ComparisonAdapter, which wraps an NUnitComparer object.

Methods

Compare(Object, Object)

Compares two objects

For(IComparer)

Returns a ComparisonAdapter that wraps an IComparer

For<T>(Comparison<T>)

Returns a ComparisonAdapter that wraps a Comparison<T>

For<T>(IComparer<T>)

Returns a ComparisonAdapter that wraps an IComparer<T>

Applies to