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

ContainsConstraint

ContainsConstraint tests a whether a string contains a substring or a collection contains an object. It postpones the decision of which test to use until the type of the actual argument is known. This allows testing whether a string is contained in a collection or as a substring of another string using the same syntax.

Flag the constraint to ignore case and return self.

public ContainsConstraint(object expected)

Initializes a new instance of the ContainsConstraint class.

Flag the constraint to use the supplied IComparer object.

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

Flag the constraint to use the supplied IComparer object.

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

Flag the constraint to use the supplied Comparison object.

Flag the constraint to use the supplied IEqualityComparer object.

Flag the constraint to use the supplied IEqualityComparer object.