Esempio n. 1
0
        public void TestSubStringBeforeBeforeNull()
        {
            var function = new SubStringBeforeFunction();

            Assert.That(function.Evaluate("abcdefg", null), Is.EqualTo("abcdefg"));
        }
Esempio n. 2
0
        public void TestSubStringBeforeNonExistingBefore()
        {
            var function = new SubStringBeforeFunction();

            Assert.That(function.Evaluate("abcdefg", "xyz"), Is.EqualTo("abcdefg"));
        }
Esempio n. 3
0
        public void TestSubStringBeforeAllNull()
        {
            var function = new SubStringBeforeFunction();

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