public void TestOfPostfixEvaluator2() { string infix = "2 * 3 ^ x"; string postfix = RPNCalculator.InfixToPostfix(infix, 2); double result = RPNCalculator.PostfixEvaluator(postfix); Assert.That(result, Is.EqualTo(18)); }
public void TestOfPostfixEvaluator2() { string infix = "2 * 3 ^ x"; string postfix = RPNCalculator.InfixToPostfix(infix, 2); double result = RPNCalculator.PostfixEvaluator(postfix); Assert.That(result, Is.EqualTo(18)); }