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

            //Assert
            Assert.Equal(actual, expected);
        }
Exemplo n.º 2
0
        public void Add(int num1, int num2, int num3, int expected)
        {
            //Arrange
            var test = new UnitTestMethods();
            //Act
            var actual = test.Add(num1, num2, num3);

            //Assert
            Assert.Equal(expected, actual);
        }
Exemplo n.º 3
0
        public void Add(int num1, int num2, int num3, int expected)
        {
            //Arrange
            UnitTestMethods myTests = new UnitTestMethods();
            //Act
            int result = myTests.Add(num1, num2, num3);

            //Assert
            Assert.Equal(expected, result);
        }
Exemplo n.º 4
0
        public void Add(int num1, int num2, int num3, int expected)
        {
            //Arrange
            var m = new UnitTestMethods();
            //Act
            var actual = m.Add(num1, num2, num3);

            //Assert
            Assert.Equal(actual, expected);
        }
Exemplo n.º 5
0
        public void AddTester(int num1, int num2, int num3, int expected)
        {
            //Arrange
            var add = new UnitTestMethods();
            //Act
            var actual = add.Add(num1, num2, num3);

            //Assert
            actual.Equals(expected);
        }
Exemplo n.º 6
0
        public void Add(int num1, int num2, int num3, int expected)
        {
            //Arrange
            //Act
            //Assert
            UnitTestMethods unitTestAdd = new UnitTestMethods();
            var             actual      = unitTestAdd.Add(num1, num2, num3);

            Assert.Equal(actual, expected);
        }
        public void Add(int num1, int num2, int num3, int expected)
        {
            var test = new UnitTestMethods();
            //Arrange: prepare the code we'll need to call the Add method

            //Act
            var actual = test.Add(num1, num2, num3);

            //Assert
            Assert.Equal(expected, actual);
        }
Exemplo n.º 8
0
        public void Add(int num1, int num2, int num3, int expected)
        {
            //Arrange
            UnitTestMethods sut = new UnitTestMethods();

            //Act
            int actual = sut.Add(num1, num2, num3);

            //Assert
            Assert.Equal(expected, actual);
        }
Exemplo n.º 9
0
        //[InlineData(null, 0)]
        public void Add(int[] arr, int expected)
        {
            //Arrange
            var add = new UnitTestMethods();

            //Act
            int x = 0;
            var actual = add.Add(x, expected);

            //Assert
            Assert.Equal(actual, expected);
        }