Пример #1
0
        public void TestSubStringAfterNonExistingBefore()
        {
            var function = new SubStringAfterFunction();

            Assert.That(function.Evaluate("abcdefg", "xyz"), Is.EqualTo(""));
        }
Пример #2
0
        public void TestSubStringAfterBeforeNull()
        {
            var function = new SubStringAfterFunction();

            Assert.That(function.Evaluate("abcdefg", null), Is.EqualTo(""));
        }
Пример #3
0
        public void TestSubStringAfterExisting()
        {
            var function = new SubStringAfterFunction();

            Assert.That(function.Evaluate("abcdefg", "de"), Is.EqualTo("fg"));
        }
Пример #4
0
        public void TestSubStringAfterAllNull()
        {
            var function = new SubStringAfterFunction();

            Assert.That(function.Evaluate(null, null), Is.EqualTo(""));
        }