Exemplo n.º 1
0
 public void TestNullAfterString()
 {
     ExceptionAssert.Throws <ArgumentNullException>(() =>
     {
         Str.After(null, "wor");
     });
 }
Exemplo n.º 2
0
        public void TestAfter()
        {
            var result = Str.After("helloworld", "wor");

            Assert.AreEqual("ld", result);

            result = Str.After("helloworld", "world");
            Assert.AreEqual(string.Empty, result);
        }
Exemplo n.º 3
0
 public void TestNotFindAfter()
 {
     Assert.AreEqual("hello", Str.After("hello", "wor"));
 }
Exemplo n.º 4
0
 public void TestAfter(string expected, string value, string search)
 {
     Assert.AreEqual(expected, Str.After(value, search));
 }