Ejemplo n.º 1
0
 public void EngineThrowsSyntaxErrors() {
     var engine = new ScriptExpressionEvaluator(new StubCacheManager());
     Assert.That(() => engine.Evaluate("true+", Enumerable.Empty<IGlobalMethodProvider>()), Throws.Exception);
 }
Ejemplo n.º 2
0
 public void EngineUnderstandsPrimitiveValues2() {
     var engine = new ScriptExpressionEvaluator(new StubCacheManager());
     Assert.That(engine.Evaluate("true and true", Enumerable.Empty<IGlobalMethodProvider>()), Is.True);
 }