csUnit Class Library

Assert.StartsWith Method 

Assert that a string starts with a particular substring. The check is case sensitive.

[Visual Basic]
Public Shared Sub StartsWith( _
   ByVal expected As String, _
   ByVal actual As String _
)
[C#]
public static void StartsWith(
   string expected,
   string actual
);

Parameters

expected
Expected start of the string.
actual
String to check.

See Also

Assert Class | Assert Members | csUnit Namespace