Esempio n. 1
0
 public void FactorialTest()
 {
     Assert.AreEqual("1", LargeFactorials.Factorial(1));
     Assert.AreEqual("120", LargeFactorials.Factorial(5));
     Assert.AreEqual("362880", LargeFactorials.Factorial(9));
     Assert.AreEqual("1307674368000", LargeFactorials.Factorial(15));
 }
Esempio n. 2
0
 public void CanCreate()
 {
     algorithm = new LargeFactorials();
     algorithm.Should().NotBeNull();
 }