Exemple #1
0
        public void Factorial_WhenPositiveNumber_ResultFactorial()
        {
            // Arrange

            // Act
            var result = Recursive.Factorial(5);

            // Assert
            Assert.Equal(120, result);
        }
Exemple #2
0
        public void Factorial_WhenZero_ResultOne()
        {
            // Arrange

            // Act
            var result = Recursive.Factorial(0);

            // Assert
            Assert.Equal(1, result);
        }