public void ComplexSubtractDivide() { Assert.AreEqual(8, SingleDigitOperandsAddSubMultDiv.Evaluate("8-4-9/3+7")); }
public void ComplexDivideSubtract() { Assert.AreEqual(-2, SingleDigitOperandsAddSubMultDiv.Evaluate("8/4/2-9/3")); }
public void ComplexAddMutiply() { Assert.AreEqual(23, SingleDigitOperandsAddSubMultDiv.Evaluate("4+3+2*5+6")); }
public void SimpleDivide() { Assert.AreEqual(1, SingleDigitOperandsAddSubMultDiv.Evaluate("3/3")); }
public void ComplexMultiplyAdd() { Assert.AreEqual(44, SingleDigitOperandsAddSubMultDiv.Evaluate("4*3*2+5*4")); }
public void SimpleMultiply() { Assert.AreEqual(12, SingleDigitOperandsAddSubMultDiv.Evaluate("3*4")); }
public void SimpleSubtract() { Assert.AreEqual(-1, SingleDigitOperandsAddSubMultDiv.Evaluate("3-4")); }
public void SimpleAdd() { Assert.AreEqual(7, SingleDigitOperandsAddSubMultDiv.Evaluate("3+4")); }
public void EmptyExpression() { Assert.AreEqual(0, SingleDigitOperandsAddSubMultDiv.Evaluate(string.Empty)); }
public void NullExpression() { Assert.AreEqual(0, SingleDigitOperandsAddSubMultDiv.Evaluate(null)); }