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

CollectionContainsConstraint

CollectionContainsConstraint is used to test whether a collection contains an expected object as a member.
protected object Expected { get; }

Gets the expected object

public CollectionContainsConstraint(object expected)

Construct a CollectionContainsConstraint

public CollectionContainsConstraint Using<TCollectionType, TMemberType>(Func<TCollectionType, TMemberType, bool> comparison)

Flag the constraint to use the supplied predicate function