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