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
#StringEndsWith
Matches if a string ends with another string:
[Test]publicvoidStringEndsWith(){varendsWithMat=newStringEndsWith("mat");conststringactual="the cat sat on the mat";Assert.That(actual,endsWithMat);// or alternativelyAssert.That(actual,Ends.With("mat"));}