C# Класс PclUnit.Constraints.Pieces.ExactCountConstraint

ExactCoutConstraint applies another constraint to each item in a collection, succeeding only if a specified number of items succeed.
Наследование: PrefixConstraint
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

ExactCountConstraint() публичный Метод

Construct an ExactCountConstraint on top of an existing constraint
public ExactCountConstraint ( int expectedCount, Constraint itemConstraint ) : System
expectedCount int
itemConstraint Constraint
Результат System

Matches() публичный Метод

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
Результат bool

WriteDescriptionTo() публичный Метод

Write a description of this constraint to a MessageWriter
public WriteDescriptionTo ( MessageWriter writer ) : void
writer MessageWriter
Результат void