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
Afficher le fichier Open project: nunit/nunit

Méthodes publiques

Méthode 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 méthode

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

Reduce() public méthode

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
Résultat void