예제 #1
0
 //[Test]
 public void negativeIterative()
 {
     for (int i = -20; i < 0; ++i)
     {
         Factorial_BigInteger.iterative((ulong)i);
     }
 }
예제 #2
0
 //[Test]
 public void negativeRecursive()
 {
     for (int i = -20; i < 0; ++i)
     {
         Factorial_BigInteger.recursive((ulong)i);
     }
 }
예제 #3
0
 public void correctRecursive()
 {
     for (int i = 0; i < data.Length; ++i)
     {
         Assert.AreEqual(data[i].expected, Factorial_BigInteger.recursive(data[i].i));
     }
 }