public void IntegerConstantEvaluateToItself() { int value = 123; ConstantExpression expression = new ConstantExpression(value); Assert.AreEqual(value, expression.Value); Assert.AreEqual(value, expression.Evaluate(null, null)); }
public void StringConstantEvaluateToItself() { string value = "foo"; ConstantExpression expression = new ConstantExpression(value); Assert.AreEqual(value, expression.Value); Assert.AreEqual(value, expression.Evaluate(null, null)); }