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

AnyOfConstraint

public class AnyOfConstraint : Constraint
AnyOfConstraint is used to determine whether the value is equal to any of the expected values.
public AnyOfConstraint IgnoreCase { get; }

Flag the constraint to ignore case and return self.

public AnyOfConstraint(ICollection expected)

Construct a AnyOfConstraint

public AnyOfConstraint Using(IComparer comparer)

Flag the constraint to use the supplied IComparer object.

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

Flag the constraint to use the supplied IComparer object.

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

Flag the constraint to use the supplied Comparison object.

Flag the constraint to use the supplied IEqualityComparer object.

public AnyOfConstraint Using<T>(IEqualityComparer<T> comparer)

Flag the constraint to use the supplied IEqualityComparer object.

public AnyOfConstraint Using<T>(Func<T, T, bool> comparer)

Flag the constraint to use the supplied boolean-returning delegate.

Enables comparing of instance properties.