@@ -0,0 +1,817 @@
+package ru.job4j.loop;%0A%0Aimport org.junit.Test;%0Aimport static org.hamcrest.core.Is.is;%0Aimport static org.junit.Assert.assertThat;%0A%0A/**%0A* Test.%0A*%0A* @author Sergey Indyukov (mailto:onl.ont@mail.ri)%0A* @version $Id$%0A* @since 0.1%0A*/%0A%0Apublic class FactorialTest %7B%0A/**%0A* Test FactorialTest.%0A*/%0A    @Test%0A    public void whenCalculateFactorialForFiveThenOneHundreedTwenty() %7B%0A%09%09Factorial obj = new Factorial();%0A        int num = obj.calc(5);%0A        int expected = 120;%0A        assertThat(num, is(expected));%0A        //  , ,     5  120.%0A    %7D%0A/**%0A* Test whenCalculateFactorialForZeroThenOne.%0A*/%0A    @Test%0A    public void whenCalculateFactorialForZeroThenOne() %7B%0A%09%09Factorial obj = new Factorial();%0A        int num = obj.calc(0);%0A        int expected = 1;%0A        assertThat(num, is(expected));%0A        //  , ,     0  1.%0A    %7D%0A%7D

task 193