<PackageReference Include="NUnit" Version="3.7.0" />

RangeConstraint

public class RangeConstraint : Constraint
RangeConstraint tests whether two _values are within a specified range.

Initializes a new instance of the RangeConstraint class.

public RangeConstraint Using(IComparer comparer)

Modifies the constraint to use an IComparer and returns self.

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

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

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

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