Example #1
0
        public void Calculator_ReordersOperandsInCorrectOrder()
        {
            var result = calculator.ReorderInPostfixNotation(new List <string>
            {
                "2", "+", "6", "*", "10", "-", "2"
            });

            Assert.AreEqual(new[] { "2", "6", "10", "*", "2", "-", "+" }, result);
        }