<PackageReference Include="nunit" Version="2.5.7.10213" />

ComparisonConstraint

public abstract class ComparisonConstraint : Constraint
Abstract base class for constraints that compare values to determine if one is greater than, equal to or less than the other.
protected bool eqOK

if true, equal returns success

protected object expected

The value against which a comparison is to be made

protected bool gtOK

if true, greater than returns success

protected bool ltOK

If true, less than returns success

public ComparisonConstraint(object value, bool ltOK, bool eqOK, bool gtOK, string predicate)

Initializes a new instance of the ComparisonConstraint class.

Modifies the constraint to use an IComparer and returns self

public ComparisonConstraint Using<T>(IComparer<T> comparer)

Modifies the constraint to use an IComparer<T> and returns self

public ComparisonConstraint Using<T>(Comparison<T> comparer)

Modifies the constraint to use a Comparison<T> and returns self