package ru.pravvich;

import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.*;

public class FactorialTest {

    @Test
    public void whenSetNumberThenCalculateFactorialSingleNumber() {
        Factorial factorial = new Factorial();
        int result = factorial.calculateFactorialsBetweenZeroToNine(5);
        assertThat(result,is(120));
    }

    @Test
    public void whenIntArrayInWhenIntSingleOutForCalculateFacnjrial() {
        Factorial factorial = new Factorial();
        int[] array = new int[3];
        array[0] = 2;
        array[1] = 2;
        array[2] = 2;
        int result = factorial.converting(array);
        assertThat(result, is(6));
    }
}
@@ -141,17 +141,16 @@
 lTest %7B%0A
-%0A
     @Tes
@@ -383,327 +383,6 @@
    %7D
-%0A%0A    @Test%0A    public void whenIntArrayInWhenIntSingleOutForCalculateFacnjrial() %7B%0A        Factorial factorial = new Factorial();%0A        int%5B%5D array = new int%5B3%5D;%0A        array%5B0%5D = 2;%0A        array%5B1%5D = 2;%0A        array%5B2%5D = 2;%0A        int result = factorial.converting(array);%0A        assertThat(result, is(6));%0A    %7D
 %0A%7D

add chapter_001/lesson_4/src/test/java/ru/pravvich/FactorialTest.java