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