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

TypeConstraint is the abstract base for constraints that take a Type as their expected value.
상속: Constraint
파일 보기 프로젝트 열기: jbtule/PclUnit

보호된 프로퍼티들

프로퍼티 타입 설명
expectedType System.Type

공개 메소드들

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

Construct a TypeConstraint for a given Type

WriteActualValueTo ( MessageWriter writer ) : void

Write the actual value for a failing constraint test to a MessageWriter. TypeConstraints override this method to write the name of the type.

메소드 상세

TypeConstraint() 공개 메소드

Construct a TypeConstraint for a given Type
public TypeConstraint ( Type type ) : System
type System.Type
리턴 System

WriteActualValueTo() 공개 메소드

Write the actual value for a failing constraint test to a MessageWriter. TypeConstraints override this method to write the name of the type.
public WriteActualValueTo ( MessageWriter writer ) : void
writer MessageWriter The writer on which the actual value is displayed
리턴 void

프로퍼티 상세

expectedType 보호되어 있는 프로퍼티

The expected Type used by the constraint
protected Type,System expectedType
리턴 System.Type