예제 #1
0
        public void MultiplyTest()
        {
            Calculator calc = new Calculator();
            int number1 = 4;
            int number2 = 6;
            int expected = 24;

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

            Assert.AreEqual(expected, actual);
        }
예제 #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);
        }