public void Factorial9() { int number = 9; int expect = 362880; int res = FactorialSolver.Factorial(number); Assert.Equal(expect, res); }
public void Factorial1() { int number = 1; int expect = 1; int res = FactorialSolver.Factorial(number); Assert.Equal(expect, res); }
public void Factorial8() { int number = 8; int expect = 40320; int res = FactorialSolver.Factorial(number); Assert.Equal(expect, res); }