C# Class PclUnit.Constraints.Pieces.EndsWithConstraint

EndsWithConstraint can test whether a string ends with an expected substring.
Inheritance: StringConstraint
Mostrar archivo Open project: jbtule/PclUnit

Public Methods

Method Description
EndsWithConstraint ( string expected ) : System

Initializes a new instance of the T:EndsWithConstraint class.

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.

WriteDescriptionTo ( MessageWriter writer ) : void

Write the constraint description to a MessageWriter

Method Details

EndsWithConstraint() public method

Initializes a new instance of the T:EndsWithConstraint class.
public EndsWithConstraint ( string expected ) : System
expected string The expected string
return System

Matches() public method

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
return bool

WriteDescriptionTo() public method

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