C# Class PclUnit.Constraints.Pieces.StartsWithConstraint

StartsWithConstraint can test whether a string starts with an expected substring.
Inheritance: StringConstraint
Afficher le fichier Open project: jbtule/PclUnit

Méthodes publiques

Méthode Description
Matches ( object actual ) : bool

Test whether the constraint is matched by the actual value. This is a template method, which calls the IsMatch method of the derived class.

StartsWithConstraint ( string expected ) : System

Initializes a new instance of the T:StartsWithConstraint class.

WriteDescriptionTo ( MessageWriter writer ) : void

Write the constraint description to a MessageWriter

Method Details

Matches() public méthode

Test whether the constraint is matched by the actual value. This is a template method, which calls the IsMatch method of the derived class.
public Matches ( object actual ) : bool
actual object
Résultat bool

StartsWithConstraint() public méthode

Initializes a new instance of the T:StartsWithConstraint class.
public StartsWithConstraint ( string expected ) : System
expected string The expected string
Résultat System

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