コード例 #1
0
        public void Additionner_RetournerValeurAddition()
        {
            //Arrange
            var calculatrice = new Calculatrice();

            //Act
            var resultat = calculatrice.Additionner(3, 5);

            //Assert
            Assert.Equal(8, resultat);
        }
コード例 #2
0
        public void Additionner_RetournerValeursAddition(int a, int b, int addition)
        {
            //Arrange
            var calculatrice = new Calculatrice();

            //Act
            var resultat = calculatrice.Additionner(a, b);

            //Assert
            Assert.Equal(addition, resultat);
        }