C# Class UnityEngine.NUnit.Framework.Constraints.SubstringConstraint

SubstringConstraint can test whether a string contains the expected substring.
Inheritance: StringConstraint
Mostrar archivo Open project: Unity-Technologies/nunitv2

Public Methods

Method Description
SubstringConstraint ( string expected )

Initializes a new instance of the T:SubstringConstraint 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

SubstringConstraint() public method

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

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