Example #1
0
        public void TestFactorial12()
        {
            int[] c = CalculateNFactorialUsingIntArrays.Factorial1(21);

            int[] expectedResult = new int[] { 0, 0, 0, 0, 4, 4, 9, 0, 7, 1, 7, 1, 2, 4, 9, 0, 9, 0, 1, 5 };

            CollectionAssert.AreEqual(expectedResult, c);
        }
Example #2
0
        public void TestFactorial11()
        {
            int[] c = CalculateNFactorialUsingIntArrays.Factorial1(-10);

            Assert.Fail();
        }