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