Exemplo n.º 1
0
        public void SplitFunctionNullSeperator()
        {
            var function = new SplitFunction();

            Assert.That(function.Evaluate("abc", null), Is.EqualTo(new[] { "abc" }));
        }
Exemplo n.º 2
0
        public void SplitFunctionWithSeperator()
        {
            var function = new SplitFunction();

            Assert.That(function.Evaluate("a,b,c", ","), Is.EqualTo(new[] { "a", "b", "c" }));
        }
Exemplo n.º 3
0
        public void SplitFunctionAllNull()
        {
            var function = new SplitFunction();

            Assert.That(function.Evaluate(null, null), Is.EqualTo(new[] { "" }));
        }