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

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

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

            Assert.That(function.Evaluate("bcdefg", "a"), Is.EqualTo(false));
        }
Пример #4
0
        public void TestNullBoth()
        {
            var function = new StartsWithFunction();

            Assert.That(function.Evaluate(null, null), Is.EqualTo(true));
        }
Пример #5
0
        public void TestNotAtTheEnd()
        {
            var function = new StartsWithFunction();

            Assert.That(function.Evaluate("0abcdefg", "a"), Is.EqualTo(false));
        }