Ejemplo n.º 1
0
        public void TestNullSubString()
        {
            var function = new EndsWithFunction();

            Assert.That(function.Evaluate("a", null), Is.EqualTo(true));
        }
Ejemplo n.º 2
0
        public void TestNullSource()
        {
            var function = new EndsWithFunction();

            Assert.That(function.Evaluate(null, "a"), Is.EqualTo(false));
        }
Ejemplo n.º 3
0
        public void TestNotContains()
        {
            var function = new EndsWithFunction();

            Assert.That(function.Evaluate("abcefg", "d"), Is.EqualTo(false));
        }
Ejemplo n.º 4
0
        public void TestNullBoth()
        {
            var function = new EndsWithFunction();

            Assert.That(function.Evaluate(null, null), Is.EqualTo(true));
        }
Ejemplo n.º 5
0
        public void TestAtTheEnd()
        {
            var function = new EndsWithFunction();

            Assert.That(function.Evaluate("abcdefg", "g"), Is.EqualTo(true));
        }