Exemple #1
0
        private void ExpressionValidationFail(string expression)
        {
            Expression e = new Calc.Expression(expression);

            Assert.IsFalse(e.IsValid, expression);
        }
Exemple #2
0
        private void ExpressionEvaluation(string expression, double expected)
        {
            Expression e = new Calc.Expression(expression);

            Assert.AreEqual(expected, e.EvaluatedValue, .001);
        }
Exemple #3
0
        private void ExpressionValidationPass(string expression)
        {
            Expression e = new Calc.Expression(expression);

            Assert.IsTrue(e.IsValid, expression);
        }