public void Add(int num1, int num2, int num3, int expected)
        {
            //Arrange
            UnitTestMethods sut = new UnitTestMethods();
            //Act
            var actual = sut.Addition(num1, num2, num3);

            //Assert
            Assert.Equal(expected, actual);
        }
Esempio n. 2
0
        public void Addition(int num1, int num2, int num3, int expected1)
        {
            //Arrange
            var arrange1 = new UnitTestMethods();
            //Act
            var actual1 = arrange1.Addition(num1, num2, num3);

            //Assert
            Assert.Equal(expected1, actual1);
        }