Table of Contents

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 : CollectionOperator
Inheritance
ExactCountOperator
Inherited Members

Constructors

ExactCountOperator(int)

Construct an ExactCountOperator for a specified count

public ExactCountOperator(int expectedCount)

Parameters

expectedCount int

The expected count

Methods

ApplyPrefix(IConstraint)

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

public override IConstraint ApplyPrefix(IConstraint constraint)

Parameters

constraint IConstraint

Returns

IConstraint