private void test(bool expectedresult, string options, string expression) { var optionsparser = ComplexStringHelper.AutoDetect(options); //optionsparser.EmptyValue = "1"; var toptions = optionsparser.Parse(options); var termsrc = LogicTermSource.Create(toptions); var expr = new LogicalExpressionParser().Parse(expression); var result = expr.Eval(termsrc); Assert.AreEqual(expectedresult, result); }
/// <summary> /// creates new instance /// </summary> public LogicalExpressionEvaluator() { parser = new LogicalExpressionParser(); }