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

AssignableFromConstraint is used to test that an object can be assigned from a given Type.
상속: TypeConstraint
파일 보기 프로젝트 열기: jbtule/PclUnit

공개 메소드들

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

Construct an AssignableFromConstraint for the type provided

Matches ( object actual ) : bool

Test whether an object can be assigned from the specified type

WriteDescriptionTo ( MessageWriter writer ) : void

Write a description of this constraint to a MessageWriter

메소드 상세

AssignableFromConstraint() 공개 메소드

Construct an AssignableFromConstraint for the type provided
public AssignableFromConstraint ( Type type ) : System
type System.Type
리턴 System

Matches() 공개 메소드

Test whether an object can be assigned from the specified type
public Matches ( object actual ) : bool
actual object The object to be tested
리턴 bool

WriteDescriptionTo() 공개 메소드

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