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