C# Class PclUnit.Constraints.Pieces.ExactTypeConstraint

ExactTypeConstraint is used to test that an object is of the exact type provided in the constructor
Inheritance: TypeConstraint
Afficher le fichier Open project: jbtule/PclUnit

Méthodes publiques

Méthode Description
ExactTypeConstraint ( Type type ) : System

Construct an ExactTypeConstraint for a given Type

Matches ( object actual ) : bool

Test that an object is of the exact type specified

WriteDescriptionTo ( MessageWriter writer ) : void

Write the description of this constraint to a MessageWriter

Method Details

ExactTypeConstraint() public méthode

Construct an ExactTypeConstraint for a given Type
public ExactTypeConstraint ( Type type ) : System
type System.Type The expected Type.
Résultat System

Matches() public méthode

Test that an object is of the exact type specified
public Matches ( object actual ) : bool
actual object The actual value.
Résultat bool

WriteDescriptionTo() public méthode

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