Verifies that a string starts with the specified text.

Namespace:  MbUnit.Framework
Assembly:  MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.459.0)

Syntax

C#
public static void StartsWith(
	string actualValue,
	string expectedText
)
Visual Basic (Declaration)
Public Shared Sub StartsWith ( _
	actualValue As String, _
	expectedText As String _
)

Parameters

actualValue
Type: System..::.String
The actual value.
expectedText
Type: System..::.String
The expected pattern.

Remarks

This assertion will fail if the string is null.

Exceptions

ExceptionCondition
Gallio.Framework.Assertions..::.AssertionExceptionThrown if the verification failed unless the current AssertionFailureBehavior indicates otherwise.
System..::.ArgumentNullExceptionThrown if expectedText is null.

See Also