You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
grahamrhay edited this page Nov 11, 2010
·
1 revision
#StringStartsWith
Matches if a string starts with another string:
[Test]publicvoidStringStartsWith(){varstartsWithThe=new StringStartsWith("the");conststringactual="the cat sat on the mat";
Assert.That(actual, startsWithThe);// or alternatively
Assert.That(actual, Starts.With("the"));}