package ru.sbulygin;

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

/**
* Test.
*
* @author Sergey Bulygin (sergteletrade@gmail.com).
* @version 1.0.
* @since 28.11.2016.
*/
public class FactorialTest {

    /**
    * Тест для класса Factorial.
    *
    * Тест метода fact .
    */
    @Test
    public void whenAddCorrectValueThenReturnFactorial() {
        Factorial factorial = new Factorial();
        final long result = factorial.fact(3);
        final long expectResult = 6L;
        assertThat(result, is(expectResult));
    }

    /**
    * Тест для класса Max.
    *
    * Тест метода max.
    */
    @Test
    public void whenAddNullThenReturnOne() {
        Factorial factorial = new Factorial();
        final long result = factorial.fact(0);
        final long expectResult = 1L;
        assertThat(result, is(expectResult));
    }
 }
@@ -326,16 +326,23 @@
 %D0%BE%D0%B4%D0%B0 fact
+, a %3E 0
  .%0A    *
@@ -631,11 +631,17 @@
 %D1%81%D1%81%D0%B0 
-Max
+Factorial
 .%0A  
@@ -666,11 +666,20 @@
 %D0%BE%D0%B4%D0%B0 
-max
+fact, a = 0 
 .%0A  

correct file