C# Class PclUnit.Constraints.Pieces.TypeConstraint

TypeConstraint is the abstract base for constraints that take a Type as their expected value.
Inheritance: Constraint
Show file Open project: jbtule/PclUnit

Protected Properties

Property Type Description
expectedType System.Type

Public Methods

Method Description
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.

Method Details

TypeConstraint() public method

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

WriteActualValueTo() public method

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
return void

Property Details

expectedType protected property

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