public void Verify_Operation2_On_Calculator() { string[] input = new string [] { "*", "/", "*", "+", "56", "45", "45", "3", "0.75" }; double expectedResult = 1136.25; var index = 0; double result = Recursion.Calculator(input, ref index); Assert.AreEqual(expectedResult, result); }
public void Verify_Operation1_On_Calculator() { string[] input = new string[] { "+", "3", "4" }; double expectedResult = 7; var index = 0; double result = Recursion.Calculator(input, ref index); Assert.AreEqual(expectedResult, result); }