Пример #1
0
        public void IntegerConstantEvaluateToItself()
        {
            int value = 123;
            ConstantExpression expression = new ConstantExpression(value);

            Assert.AreEqual(value, expression.Value);
            Assert.AreEqual(value, expression.Evaluate(null, null));
        }
Пример #2
0
        public void StringConstantEvaluateToItself()
        {
            string value = "foo";
            ConstantExpression expression = new ConstantExpression(value);

            Assert.AreEqual(value, expression.Value);
            Assert.AreEqual(value, expression.Evaluate(null, null));
        }