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

CollectionOrderedConstraint

CollectionOrderedConstraint is used to test whether a collection is ordered.

If used performs a default ascending comparison

If used performs a reverse comparison

Then signals a break between two ordering steps

Construct a CollectionOrderedConstraint

public CollectionOrderedConstraint By(string propertyName)

Modifies the constraint to test ordering by the value of a specified property and returns self.

Modifies the constraint to use an IComparer and returns self.

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

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