Class ExactCountOperator
- Namespace
- NUnit.Framework.Constraints
- Assembly
- nunit.framework.dll
Represents a constraint that succeeds if the specified count of members of a collection match a base constraint.
public class ExactCountOperator : SelfResolvingOperator
- Inheritance
-
ExactCountOperator
- Inherited Members
Constructors
ExactCountOperator(int)
Construct an ExactCountOperator for a specified count
public ExactCountOperator(int expectedCount)
Parameters
expectedCount
intThe expected count
Methods
Reduce(ConstraintStack)
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.
public override void Reduce(ConstraintBuilder.ConstraintStack stack)