Пример #1
0
        public void TestStandaloneEvaluatorSyntaxCheckFailure() {
            ExpressionEvaluator eval = new ExpressionEvaluator(_project, 
                _project.Properties,
                new Hashtable(),
                new Stack());

            eval.CheckSyntax("1 + 2 * 3 1");
        }
Пример #2
0
 public void TestStandaloneEvaluator() {
     ExpressionEvaluator eval = 
         new ExpressionEvaluator(_project, 
         _project.Properties,
         new Hashtable(),
         new Stack());
     
     Assert.AreEqual(eval.Evaluate("1 + 2 * 3"), 7);
     eval.CheckSyntax("1 + 2 * 3");
 }