@@ -0,0 +1,342 @@
+package ru.matevosyan.lesson_4_Loops;%0A%0Aimport org.junit.Test;%0Aimport static org.hamcrest.core.Is.is;%0Aimport static org.junit.Assert.*;%0A%0A%0Apublic class FactorialTest %7B%0A%09%09%0A%09@Test%0A%09public void whenFactorialNThanGetResultN() %7B%0A%09%09%0A%09%09//assign%0A%09%09Factorial f = new Factorial();%0A%09%09int result = f.fact(5);%0A%09%09%0A%09%09//act%0A%09%09assertThat(result, is(120));%0A%0A%09%7D%0A%7D

add FactorialTest