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

CollectionConstraint

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

Construct an empty CollectionConstraint

public CollectionConstraint(object arg)

Construct a CollectionConstraint

protected static bool IsEmpty(IEnumerable enumerable)

Determines whether the specified enumerable is empty.

protected abstract bool doMatch(IEnumerable collection)

Protected method to be implemented by derived classes