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

StartsWithConstraint can test whether a string starts with an expected substring.
Inheritance: StringConstraint
Mostrar archivo Open project: Unity-Technologies/nunitv2

Public Methods

Method Description
StartsWithConstraint ( string expected )

Initializes a new instance of the T:StartsWithConstraint 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 matched by the actual value. This is a template method, which calls the IsMatch method of the derived class.

Method Details

Matches() protected 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.
protected Matches ( string actual ) : bool
actual string
return bool

StartsWithConstraint() public method

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

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