Beispiel #1
0
        public void TestSubStringStartIndexNull()
        {
            var function = new SubStringFunction();

            Assert.That(function.Evaluate("abcdefg", null, 3), Is.EqualTo("abc"));
        }
Beispiel #2
0
        public void TestSubStringEndIndexNull()
        {
            var function = new SubStringFunction();

            Assert.That(function.Evaluate("abcdefg", 3, null), Is.EqualTo("defg"));
        }
Beispiel #3
0
        public void TestSubStringAllNull()
        {
            var function = new SubStringFunction();

            Assert.That(function.Evaluate(null, null, null), Is.EqualTo(""));
        }
Beispiel #4
0
        public void TestSubStringBothStartAndEndNull()
        {
            var function = new SubStringFunction();

            Assert.That(function.Evaluate("abcdefg", null, null), Is.EqualTo("abcdefg"));
        }
Beispiel #5
0
        public void TesAllFilled()
        {
            var function = new SubStringFunction();

            Assert.That(function.Evaluate("abcdefg", 3, 5), Is.EqualTo("de"));
        }