C# 클래스 PclUnit.Constraints.Pieces.AndConstraint

AndConstraint succeeds only if both members succeed.
상속: BinaryConstraint
파일 보기 프로젝트 열기: jbtule/PclUnit

공개 메소드들

메소드 설명
AndConstraint ( Constraint left, Constraint right )

Create an AndConstraint from two other constraints

Matches ( object actual ) : bool

Apply both member constraints to an actual value, succeeding succeeding only if both of them succeed.

WriteActualValueTo ( MessageWriter writer ) : void

Write the actual value for a failing constraint test to a MessageWriter. The default implementation simply writes the raw value of actual, leaving it to the writer to perform any formatting.

WriteDescriptionTo ( MessageWriter writer ) : void

Write a description for this contraint to a MessageWriter

메소드 상세

AndConstraint() 공개 메소드

Create an AndConstraint from two other constraints
public AndConstraint ( Constraint left, Constraint right )
left Constraint The first constraint
right Constraint The second constraint

Matches() 공개 메소드

Apply both member constraints to an actual value, succeeding succeeding only if both of them succeed.
public Matches ( object actual ) : bool
actual object The actual value
리턴 bool

WriteActualValueTo() 공개 메소드

Write the actual value for a failing constraint test to a MessageWriter. The default implementation simply writes the raw value of actual, leaving it to the writer to perform any formatting.
public WriteActualValueTo ( MessageWriter writer ) : void
writer MessageWriter The writer on which the actual value is displayed
리턴 void

WriteDescriptionTo() 공개 메소드

Write a description for this contraint to a MessageWriter
public WriteDescriptionTo ( MessageWriter writer ) : void
writer MessageWriter The MessageWriter to receive the description
리턴 void