示例#1
0
        public void Factorial9()
        {
            int number = 9;
            int expect = 362880;

            int res = FactorialSolver.Factorial(number);

            Assert.Equal(expect, res);
        }
示例#2
0
        public void Factorial1()
        {
            int number = 1;
            int expect = 1;

            int res = FactorialSolver.Factorial(number);

            Assert.Equal(expect, res);
        }
示例#3
0
        public void Factorial8()
        {
            int number = 8;
            int expect = 40320;

            int res = FactorialSolver.Factorial(number);

            Assert.Equal(expect, res);
        }