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

ExactCountConstraint applies another constraint to each item in a collection, succeeding only if a specified number of items succeed.
Inheritance: PrefixConstraint
Mostrar archivo Open project: Unity-Technologies/nunitv2

Public Methods

Method Description
ExactCountConstraint ( int expectedCount, Constraint itemConstraint ) : System

Construct an ExactCountConstraint on top of an existing constraint

Matches ( object actual ) : bool

Apply the item constraint to each item in the collection, succeeding only if the expected number of items pass.

WriteDescriptionTo ( MessageWriter writer ) : void

Write a description of this constraint to a MessageWriter

Method Details

ExactCountConstraint() public method

Construct an ExactCountConstraint on top of an existing constraint
public ExactCountConstraint ( int expectedCount, Constraint itemConstraint ) : System
expectedCount int
itemConstraint Constraint
return System

Matches() public method

Apply the item constraint to each item in the collection, succeeding only if the expected number of items pass.
public Matches ( object actual ) : bool
actual object
return bool

WriteDescriptionTo() public method

Write a description of this constraint to a MessageWriter
public WriteDescriptionTo ( MessageWriter writer ) : void
writer MessageWriter
return void