Assert.assertEquals(expected, actual);
}
@Test
public void testFactorialForMultipleKindOfNumbers(){
FactorialGenerator fg = new FactorialGenerator();
int expected = 24;
int actual = fg.getFactorial(4);
Assert.assertEquals(expected, actual);
expected = 120;
actual = fg.getFactorial(5);
Assert.assertEquals(expected, actual);
expected = 720;
actual = fg.getFactorial(6);
Assert.assertEquals(expected, actual);
expected = 5040;
actual = fg.getFactorial(7);
Assert.assertEquals(expected, actual);
expected = 40320;
actual = fg.getFactorial(8);
Assert.assertEquals(expected, actual);
expected = 362880;
actual = fg.getFactorial(9);
Assert.assertEquals(expected, actual);
expected = 3628800;
actual = fg.getFactorial(10);
Assert.assertEquals(expected, actual);
}