示例#1
0
        public void DivideTest()
        {
            Calculator calc = new Calculator();
            int number1 = 10;
            int number2 = 2;
            int expected = 5;

            int actual = calc.Divide(number1, number2);

            Assert.AreEqual(expected, actual);

            //Assert.Fail();
        }
示例#2
0
        public void MultiplyTest()
        {
            // arrange
            Calculator calc = new Calculator();
            int number1 = 5;
            int number2 = 7;
            int expected = 35;

            // act
            int actual = calc.Multiply(number1, number2);

            // assert
            Assert.AreEqual(expected, actual);

            //Assert.Fail();
        }