C# Class NUnit.Framework.Constraints.ExactCountOperator

Represents a constraint that succeeds if the specified count of members of a collection match a base constraint.
Inheritance: NUnit.Framework.Constraints.CollectionOperator
Show file Open project: nunit/nunit

Public Methods

Method Description
ExactCountOperator ( int expectedCount ) : System

Construct an ExactCountOperator for a specified count

Reduce ( NUnit.Framework.Constraints.ConstraintBuilder stack ) : void

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.

Method Details

ExactCountOperator() public method

Construct an ExactCountOperator for a specified count
public ExactCountOperator ( int expectedCount ) : System
expectedCount int The expected count
return System

Reduce() public method

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 Reduce ( NUnit.Framework.Constraints.ConstraintBuilder stack ) : void
stack NUnit.Framework.Constraints.ConstraintBuilder
return void