Esempio n. 1
0
        public void TestConcatWithSpaceBothNull()
        {
            var concat = new ConcatWithSpace(new Property("Null"), new Property("Null"));

            Assert.That(concat.Evaluate(new Reflection(this)), Is.EqualTo(string.Empty));
        }
Esempio n. 2
0
        public void TestConcatWithSpaceRhsNotEmptyLhsNull()
        {
            var concat = new ConcatWithSpace(new Property("Null"), new Property("Right"));

            Assert.That(concat.Evaluate(new Reflection(this)), Is.EqualTo("rhs"));
        }
Esempio n. 3
0
        public void TestSimpleConcatWithSpace()
        {
            var concat = new ConcatWithSpace(new Property("Left"), new Property("Right"));

            Assert.That(concat.Evaluate(new Reflection(this)), Is.EqualTo("lhs rhs"));
        }