public void AddSubractMultiplyDivide() { var calc = new r365_calc.Calc(); calc.Calculate("1,2,*,3,/,3,-,1"); Assert.That(calc.Output() == 2); Assert.That(calc.History() == "1+2*3/3-1"); }
public void ShowFormula() { var calc = new r365_calc.Calc(); calc.UpperBound = 1000; calc.Calculate("2,4,rrrr,1001,6"); Assert.That(calc.Output() == 12); Assert.That(calc.History() == "2+4+0+0+6"); }