C# Class UnityEngine.NUnit.Framework.Constraints.ExactCountOperator

Represents a constraint that succeeds if the specified count of members of a collection match a base constraint.
Inheritance: CollectionOperator
Mostrar archivo Open project: Unity-Technologies/nunitv2

Public Methods

Method Description
ApplyPrefix ( Constraint constraint ) : Constraint

Returns a constraint that will apply the argument to the members of a collection, succeeding if none of them succeed.

ExactCountOperator ( int expectedCount )

Construct an ExactCountOperator for a specified count

Method Details

ApplyPrefix() public method

Returns a constraint that will apply the argument to the members of a collection, succeeding if none of them succeed.
public ApplyPrefix ( Constraint constraint ) : Constraint
constraint Constraint
return Constraint

ExactCountOperator() public method

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