IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Represents a constraint that succeeds if the specified count of members of a collection match a base constraint. More...
Public Member Functions | |
ExactCountOperator (int expectedCount) | |
Construct an ExactCountOperator for a specified count More... | |
override IConstraint | ApplyPrefix (IConstraint constraint) |
Returns a constraint that will apply the argument to the members of a collection, succeeding if none of them succeed. More... | |
![]() | |
override void | Reduce (ConstraintBuilder.ConstraintStack stack) |
Reduce produces a constraint from the operator and any arguments. It takes the arguments from the constraint stack and pushes the resulting constraint on it. More... | |
Private Attributes | |
int | expectedCount |
Additional Inherited Members | |
![]() | |
CollectionOperator () | |
Constructs a CollectionOperator More... | |
![]() | |
int | left_precedence |
The precedence value used when the operator is about to be pushed to the stack. More... | |
int | right_precedence |
The precedence value used when the operator is on the top of the stack. More... | |
![]() | |
object | LeftContext [get, set] |
The syntax element preceding this operator More... | |
object | RightContext [get, set] |
The syntax element following this operator More... | |
virtual int | LeftPrecedence [get] |
The precedence value used when the operator is about to be pushed to the stack. More... | |
virtual int | RightPrecedence [get] |
The precedence value used when the operator is on the top of the stack. More... | |
Represents a constraint that succeeds if the specified count of members of a collection match a base constraint.
|
inline |
Construct an ExactCountOperator for a specified count
expectedCount | The expected count |
|
inlinevirtual |
Returns a constraint that will apply the argument to the members of a collection, succeeding if none of them succeed.
Implements NUnit.Framework.Constraints.PrefixOperator.
|
private |