C# Class PclUnit.Constraints.Pieces.NotConstraint

NotConstraint negates the effect of some other constraint
Inheritance: PrefixConstraint
Afficher le fichier Open project: jbtule/PclUnit

Méthodes publiques

Méthode Description
Matches ( object actual ) : bool

Test whether the constraint is satisfied by a given value

NotConstraint ( Constraint baseConstraint ) : System

Initializes a new instance of the T:NotConstraint class.

WriteActualValueTo ( MessageWriter writer ) : void

Write the actual value for a failing constraint test to a MessageWriter.

WriteDescriptionTo ( MessageWriter writer ) : void

Write the constraint description to a MessageWriter

Method Details

Matches() public méthode

Test whether the constraint is satisfied by a given value
public Matches ( object actual ) : bool
actual object The value to be tested
Résultat bool

NotConstraint() public méthode

Initializes a new instance of the T:NotConstraint class.
public NotConstraint ( Constraint baseConstraint ) : System
baseConstraint Constraint The base constraint to be negated.
Résultat System

WriteActualValueTo() public méthode

Write the actual value for a failing constraint test to a MessageWriter.
public WriteActualValueTo ( MessageWriter writer ) : void
writer MessageWriter The writer on which the actual value is displayed
Résultat void

WriteDescriptionTo() public méthode

Write the constraint description to a MessageWriter
public WriteDescriptionTo ( MessageWriter writer ) : void
writer MessageWriter The writer on which the description is displayed
Résultat void