Example #1
0
        public void AssertFactorial()
        {
            string val1    = "2";
            string results = BigMath.Factorial(val1);

            Assert.AreEqual("2", results);
        }
Example #2
0
        public void AssertFactorialOf10()
        {
            string val1    = "10";
            string results = BigMath.Factorial(val1);

            Assert.AreEqual("3628800", results);
        }
Example #3
0
        public void AssertFactorialOf15()
        {
            string val1    = "15";
            string results = BigMath.Factorial(val1);

            Assert.AreEqual("1307674368000", results);
        }
Example #4
0
 public void AssertStaticFactoralMethod()
 {
     var testNumber = "1";
     var testResult = BigMath.Factorial(testNumber);
 }