예제 #1
0
        public void FirstSymbolEqualToSolveSymbolTest()
        {
            mathExpression = MathExpression.CreateExpression();
            var subSymbol = Condition.TakeFirstSymbolEqualToSolveSymbol(mathExpression, SimpleCalculator.Enums.Operations.SubAndAdd);
            var multSymol = Condition.TakeFirstSymbolEqualToSolveSymbol(mathExpression, SimpleCalculator.Enums.Operations.MulAndDiv);

            Assert.AreEqual(subSymbol, mathExpression[1]);
            Assert.AreEqual(multSymol, mathExpression[3]);
        }