C# Class PclUnit.Constraints.Pieces.AssignableToConstraint

AssignableToConstraint is used to test that an object can be assigned to a given Type.
Inheritance: TypeConstraint
Show file Open project: jbtule/PclUnit

Public Methods

Method Description
AssignableToConstraint ( Type type ) : System

Construct an AssignableToConstraint for the type provided

Matches ( object actual ) : bool

Test whether an object can be assigned to the specified type

WriteDescriptionTo ( MessageWriter writer ) : void

Write a description of this constraint to a MessageWriter

Method Details

AssignableToConstraint() public method

Construct an AssignableToConstraint for the type provided
public AssignableToConstraint ( Type type ) : System
type System.Type
return System

Matches() public method

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

WriteDescriptionTo() public method

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