예제 #1
0
        public void AdditionTest()
        {
            //Arrange
            var x = 15;
            var y = 10;

            //Act
            var resultat = calculator.Addition(x, y);

            //Assert
            Assert.Equal(25, resultat);
        }
예제 #2
0
        public void Addition()
        {
            int firstValue = 10;
            int secondValue = 5;

            CalculatorRepository op = new CalculatorRepository();
            var result = op.Addition(firstValue, secondValue);


            Assert.Equal(15, result);


        }