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

AllItemsConstraint applies another constraint to each item in a collection, succeeding if they all succeed.
Inheritance: PrefixConstraint
ファイルを表示 Open project: Unity-Technologies/nunitv2

Public Methods

Method Description
AllItemsConstraint ( Constraint itemConstraint ) : System

Construct an AllItemsConstraint on top of an existing constraint

Matches ( object actual ) : bool

Apply the item constraint to each item in the collection, failing if any item fails.

WriteDescriptionTo ( MessageWriter writer ) : void

Write a description of this constraint to a MessageWriter

Method Details

AllItemsConstraint() public method

Construct an AllItemsConstraint on top of an existing constraint
public AllItemsConstraint ( Constraint itemConstraint ) : System
itemConstraint Constraint
return System

Matches() public method

Apply the item constraint to each item in the collection, failing if any item fails.
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