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

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

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

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