Пример #1
0
 public void TestNullAfterString()
 {
     ExceptionAssert.Throws <ArgumentNullException>(() =>
     {
         Str.After(null, "wor");
     });
 }
Пример #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);
        }
Пример #3
0
 public void TestNotFindAfter()
 {
     Assert.AreEqual("hello", Str.After("hello", "wor"));
 }
Пример #4
0
 public void TestAfter(string expected, string value, string search)
 {
     Assert.AreEqual(expected, Str.After(value, search));
 }