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
파일 보기 프로젝트 열기: jbtule/PclUnit

공개 메소드들

메소드 설명
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