Exemple #1
0
        public void CalculateFactorialUsingRecursionForFour()
        {
            FactorialCalcualator factorialCalcualator = new FactorialCalcualator();

            Assert.AreEqual(24, factorialCalcualator.CalculateUsingRecursion(4));
        }
Exemple #2
0
        public void CalculateFactorialUsingRecursionForZero()
        {
            FactorialCalcualator factorialCalcualator = new FactorialCalcualator();

            Assert.AreEqual(1, factorialCalcualator.CalculateUsingRecursion(0));
        }