C# Class PclUnit.Constraints.Pieces.InstanceOfTypeConstraint

InstanceOfTypeConstraint is used to test that an object is of the same type provided or derived from it.
Inheritance: TypeConstraint
Afficher le fichier Open project: jbtule/PclUnit

Méthodes publiques

Méthode Description
InstanceOfTypeConstraint ( Type type ) : System

Construct an InstanceOfTypeConstraint for the type provided

Matches ( object actual ) : bool

Test whether an object is of the specified type or a derived type

WriteDescriptionTo ( MessageWriter writer ) : void

Write a description of this constraint to a MessageWriter

Method Details

InstanceOfTypeConstraint() public méthode

Construct an InstanceOfTypeConstraint for the type provided
public InstanceOfTypeConstraint ( Type type ) : System
type System.Type The expected Type
Résultat System

Matches() public méthode

Test whether an object is of the specified type or a derived type
public Matches ( object actual ) : bool
actual object The object to be tested
Résultat bool

WriteDescriptionTo() public méthode

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