public void UT_Formula() { IFormulaParser parser = new NCalcFormulaParser(); var result = parser.Evaluate("1+2"); Assert.IsTrue((int)result == 3); }
public void UT_FormulaError() { try { IFormulaParser parser = new NCalcFormulaParser(); var result = parser.Evaluate("1+N"); } catch { Assert.IsTrue(true); } }