Example #1
0
        public void TestFactorial(int n, double expected)
        {
            Number result = NumberMath.Factorial(n);

            AreEqual(expected, result, 1E-9);
        }
 private static Number FactorialWrapper(Number arg)
 {
     return(NumberMath.Factorial((int)arg.ToDouble()));
 }