public void TestExpression2() { ExpressionCalc.Caluc("1+2*(1+3)-3"); Assert.AreEqual(ExpressionCalc.Reuslt, 6); Assert.AreEqual(ExpressionCalc.Rpn, "1213+*+3-"); }
public void TestExpression1() { ExpressionCalc.Caluc("1+2/1"); Assert.AreEqual(ExpressionCalc.Reuslt, 3); Assert.AreEqual(ExpressionCalc.Rpn, "121/+"); }