public void BadListCalculation() { int value = 0; string[] items = new[] { "5", "6", "8", "7", "*", "+", "1", "-" }; MyPostFixCalculator calc = new MyPostFixCalculator(); value = calc.CalculateListPostFixNotation(items); }
public void ExtraSign() { int value = 0; string[] items = new[] { "5", "6", "%", "7", "*", "+", "1", "-" }; MyPostFixCalculator calc = new MyPostFixCalculator(); value = calc.CalculateArrayPostFixNotation(items); }
public void GoodListCalculation() { int value = 0; string[] items = new[] { "5", "6", "7", "*", "+", "1", "-" }; MyPostFixCalculator calc = new MyPostFixCalculator(); value = calc.CalculateListPostFixNotation(items); Assert.AreEqual(value, 46); }