public void TestNullAfterString() { ExceptionAssert.Throws <ArgumentNullException>(() => { Str.After(null, "wor"); }); }
public void TestAfter() { var result = Str.After("helloworld", "wor"); Assert.AreEqual("ld", result); result = Str.After("helloworld", "world"); Assert.AreEqual(string.Empty, result); }
public void TestNotFindAfter() { Assert.AreEqual("hello", Str.After("hello", "wor")); }
public void TestAfter(string expected, string value, string search) { Assert.AreEqual(expected, Str.After(value, search)); }