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

CollectionConstraint

public abstract class CollectionConstraint : Constraint
CollectionConstraint is the abstract base class for constraints that operate on collections.

Construct an empty CollectionConstraint

protected CollectionConstraint(object arg)

Construct a CollectionConstraint

protected static bool IsEmpty(IEnumerable enumerable)

Determines whether the specified enumerable is empty.

protected abstract bool Matches(IEnumerable collection)

Protected method to be implemented by derived classes