示例#1
0
        public void Multiply(int num1, int num2, int expected)
        {
            UnitTestMethods unitTestMultiply = new UnitTestMethods();
            var             actualMultiply   = unitTestMultiply.Multiply(num1, num2);

            Assert.Equal(actualMultiply, expected);
        }
示例#2
0
        public void Multiply(int num1, int num2, int expected)
        {
            //Arrange
            var test = new UnitTestMethods();
            //Act
            var actual = test.Multiply(num1, num2);

            //Assert
            Assert.Equal(expected, actual);
        }
        public void Multiply(int num1, int num2, int expected)
        {
            //Arrange
            UnitTestMethods challenger = new UnitTestMethods();
            //Act
            int actual = challenger.Multiply(num1, num2);

            //Assert
            Assert.Equal(actual, expected);
        }
示例#4
0
        public void Multiply(int num1, int num2, int expected)
        {
            //Arrange
            var myTests = new UnitTestMethods();
            //Act
            int result = myTests.Multiply(num1, num2);

            //Assert
            Assert.Equal(expected, result);
        }
示例#5
0
        public void Multiply(int num1, int num2, int expected)
        {
            //Arrange
            var m = new UnitTestMethods();
            //Act
            var actual = m.Multiply(num1, num2);

            //Assert
            Assert.Equal(actual, expected);
        }
示例#6
0
        public void Multiply(int num1, int num2, int expected)
        {
            //Arrange
            var mult = new UnitTestMethods();
            //Act
            var actual = mult.Multiply(num1, num2);

            //Assert
            actual.Equals(expected);
        }
示例#7
0
        public void Multiply(int num1, int num2, int expected)
        {
            //Arrange - instantiation of the class
            var test = new UnitTestMethods();
            //Act call the method
            var actual = test.Multiply(num1, num2);

            //Assert - the actual test
            Assert.Equal(expected, actual);
        }