public void Double_SepIsComma_ok() { ExpressionEval evaluator = new ExpressionEval(); evaluator.SetDecimalAndFunctionSeparators(DecimalAndFunctionSeparators.ExcelLike); string expr = "12,45"; ParseResult parseResult = evaluator.Parse(expr); Assert.IsFalse(parseResult.HasError, "the parse should finish with success"); //====2/prepare the execution, provide all used variables: type and value //ExprExecResult execResult = evaluator.InitExec(); //====3/execute l'expression booléenne ExecResult execResult = evaluator.Exec(); Assert.AreEqual(false, execResult.HasError, "The exec of the expression should finish with success"); // check the final result value Assert.IsTrue(execResult.IsResultDouble, "The result value should be a double"); Assert.AreEqual(12.45, execResult.ResultDouble, "The result value should be 12.45"); }