CollectionItemsEqualConstraint Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
CollectionItemsEqualConstraint is the abstract base class for all collection constraints that apply some notion of item equality as a part of their operation.
public abstract class CollectionItemsEqualConstraint : NUnit.Framework.Constraints.CollectionConstraint
type CollectionItemsEqualConstraint = class
inherit CollectionConstraint
- Inheritance
- Derived
Constructors
CollectionItemsEqualConstraint() |
Construct an empty CollectionConstraint |
CollectionItemsEqualConstraint(Object) |
Construct a CollectionConstraint |
Fields
actual |
The actual value being tested against a constraint (Inherited from Constraint) |
Properties
And |
Returns a ConstraintExpression by appending And to the current constraint. (Inherited from Constraint) |
DisplayName |
The display name of this Constraint for use by ToString(). The default value is the name of the constraint with trailing "Constraint" removed. Derived classes may set this to another name in their constructors. (Inherited from Constraint) |
IgnoreCase |
Flag the constraint to ignore case and return self. |
Or |
Returns a ConstraintExpression by appending Or to the current constraint. (Inherited from Constraint) |
With |
Returns a ConstraintExpression by appending And to the current constraint. (Inherited from Constraint) |
Methods
After(Int32, Int32) | (Inherited from Constraint) |
After(Int32) | (Inherited from Constraint) |
doMatch(IEnumerable) |
Protected method to be implemented by derived classes (Inherited from CollectionConstraint) |
GetStringRepresentation() | (Inherited from Constraint) |
ItemsEqual(Object, Object) |
Compares two collection members for equality |
Matches(Object) |
Test whether the constraint is satisfied by a given value (Inherited from CollectionConstraint) |
Matches<T>(ActualValueDelegate<T>) | (Inherited from Constraint) |
Matches<T>(T) | (Inherited from Constraint) |
Tally(IEnumerable) | |
ToString() |
Default override of ToString returns the constraint DisplayName followed by any arguments within angle brackets. (Inherited from Constraint) |
Using(IComparer) |
Flag the constraint to use the supplied IComparer object. |
Using(IEqualityComparer) |
Flag the constraint to use the supplied IEqualityComparer object. |
Using<T>(Comparison<T>) |
Flag the constraint to use the supplied Comparison object. |
Using<T>(IComparer<T>) |
Flag the constraint to use the supplied IComparer object. |
Using<T>(IEqualityComparer<T>) |
Flag the constraint to use the supplied IEqualityComparer object. |
WriteActualValueTo(MessageWriter) |
Write the actual value for a failing constraint test to a MessageWriter. The default implementation simply writes the raw value of actual, leaving it to the writer to perform any formatting. (Inherited from Constraint) |
WriteDescriptionTo(MessageWriter) |
Write the constraint description to a MessageWriter (Inherited from Constraint) |
WriteMessageTo(MessageWriter) |
Write the failure message to the MessageWriter provided as an argument. The default implementation simply passes the constraint and the actual value to the writer, which then displays the constraint description and the value. Constraints that need to provide additional details, such as where the error occured can override this. (Inherited from Constraint) |
Explicit Interface Implementations
IResolveConstraint.Resolve() | (Inherited from Constraint) |