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

ExactTypeConstraint is used to test that an object is of the exact type provided in the constructor
상속: TypeConstraint
파일 보기 프로젝트 열기: jbtule/PclUnit

공개 메소드들

메소드 설명
ExactTypeConstraint ( Type type ) : System

Construct an ExactTypeConstraint for a given Type

Matches ( object actual ) : bool

Test that an object is of the exact type specified

WriteDescriptionTo ( MessageWriter writer ) : void

Write the description of this constraint to a MessageWriter

메소드 상세

ExactTypeConstraint() 공개 메소드

Construct an ExactTypeConstraint for a given Type
public ExactTypeConstraint ( Type type ) : System
type System.Type The expected Type.
리턴 System

Matches() 공개 메소드

Test that an object is of the exact type specified
public Matches ( object actual ) : bool
actual object The actual value.
리턴 bool

WriteDescriptionTo() 공개 메소드

Write the description of this constraint to a MessageWriter
public WriteDescriptionTo ( MessageWriter writer ) : void
writer MessageWriter The MessageWriter to use
리턴 void