C# Class NUnit.Framework.Constraints.RegexConstraint

RegexConstraint can test whether a string matches the pattern provided.
Inheritance: NUnit.Framework.Constraints.StringConstraint
Exibir arquivo Open project: pjcollins/Andr.Unit Class Usage Examples

Public Methods

Method Description
RegexConstraint ( string pattern ) : System.Text.RegularExpressions

Initializes a new instance of the T:RegexConstraint class.

WriteDescriptionTo ( MessageWriter writer ) : void

Write the constraint description to a MessageWriter

Protected Methods

Method Description
Matches ( string actual ) : bool

Test whether the constraint is satisfied by a given value

Method Details

Matches() protected method

Test whether the constraint is satisfied by a given value
protected Matches ( string actual ) : bool
actual string The value to be tested
return bool

RegexConstraint() public method

Initializes a new instance of the T:RegexConstraint class.
public RegexConstraint ( string pattern ) : System.Text.RegularExpressions
pattern string The pattern.
return System.Text.RegularExpressions

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