Example #1
0
 public void TestHatvanyCalculato()
 {
     FactorialCalculator.FactorialRecursion(-3);
     FactorialCalculator.ExponentiationRecursion(-2, 8);
 }
Example #2
0
 public void TestFactorialCalculation()
 {
     Assert.AreEqual(1, FactorialCalculator.FactorialRecursion(1));
     Assert.AreEqual(6, FactorialCalculator.FactorialRecursion(3));
     Assert.AreEqual(120, FactorialCalculator.FactorialRecursion(5));
 }