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