Пример #1
0
            public void SimpleMultiplicationTest()
            {
                SimpleMathOperation SMO = new SimpleMathOperation();
                int operandA            = Convert.ToInt32(_controller.AcceptCharacter('3'));
                int operandB            = Convert.ToInt32(_controller.AcceptCharacter('1'));
                int result = SMO.Multiply(operandA, operandB);

                Assert.AreEqual(3, result);
            }
Пример #2
0
 public void SimpleMultiplicationTest()
 {
     SimpleMathOperation smo = new SimpleMathOperation();
     _controller.AcceptCharacter('3');
     int operandA = Convert.ToInt32(_controller.GetOutput());
     _controller.AcceptCharacter('1');
     int operandB = Convert.ToInt32(_controller.GetOutput());
     int result = smo.Multiply(operandA, operandB);
     Assert.AreEqual(3, result);
 }
Пример #3
0
            public void Disable_SimpleMultiplicationTest()
            {
                SimpleMathOperation smo = new SimpleMathOperation();

                _controller.AcceptCharacter('3');
                int operandA = Convert.ToInt32(_controller.GetOutput());

                _controller.AcceptCharacter('1');
                int operandB = Convert.ToInt32(_controller.GetOutput());
                int result   = smo.Multiply(operandA, operandB);
                // Assert.AreEqual(3, result);      does not match assignment
            }