Exemple #1
0
        public void ALU_CorrectExpression_Result(string expression,
                                                 string result)
        {
            string expected = result;

            string actual = Calculate.ALU(expression);

            Assert.AreEqual(expected, actual);
        }
Exemple #2
0
 public void ALU_DivideByZero_Exception(string expression)
 {
     Assert.Throws <DivideByZeroException>(() => Calculate.ALU(expression));
 }
Exemple #3
0
 public void ALU_NotCorrectExpression_Exception(string expression)
 {
     Assert.Throws <NotCorrectException>(() => Calculate.ALU(expression));
 }