C# Class PclUnit.Constraints.Pieces.TypeConstraint

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

Protected Properties

Свойство Type Description
expectedType System.Type

Méthodes publiques

Méthode 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 méthode

Construct a TypeConstraint for a given Type
public TypeConstraint ( Type type ) : System
type System.Type
Résultat System

WriteActualValueTo() public méthode

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
Résultat void

Property Details

expectedType protected_oe property

The expected Type used by the constraint
protected Type,System expectedType
Résultat System.Type