csUnit Class Library

Assert.StartsWith Method (String, String, String)

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

public static void StartsWith(
   string expected,
   string actual,
   string message
);

Parameters

expected
Expected start of the string.
actual
String to check.
message
Message to display when 'actual' does not start with 'expected'.

See Also

Assert Class | csUnit Namespace | Assert.StartsWith Overload List