private void ExpressionValidationFail(string expression) { Expression e = new Calc.Expression(expression); Assert.IsFalse(e.IsValid, expression); }
private void ExpressionEvaluation(string expression, double expected) { Expression e = new Calc.Expression(expression); Assert.AreEqual(expected, e.EvaluatedValue, .001); }
private void ExpressionValidationPass(string expression) { Expression e = new Calc.Expression(expression); Assert.IsTrue(e.IsValid, expression); }