csUnit Class Library

Assert.StartsWith Method (String, String)

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

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

Parameters

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

See Also

Assert Class | csUnit Namespace | Assert.StartsWith Overload List