Example #1
0
        public void OnePlusOne()
        {
            //Arrange
            var test = new UnitTestMethods();
            //Act
            int actual = test.OnePlusOne();

            //Assert
            Assert.Equal(2, actual);
        }
Example #2
0
        public void OnePlusOne()
        {
            //Arrange
            var sut = new UnitTestMethods();
            //Act
            int num1   = 1;
            int num2   = 1;
            var actual = sut.OnePlusOne(num1, num2);

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