package ru.job4j;

import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**.
*
* @author Anton Vasilyuk
* @version 1.0
* @since 0.1
*/

public class TurnTest {

	/**.
	* Test method back
	*/
	@Test
	public void whenIsArrayThenIsBackArray() {
		Turn turn = new Turn();
		int[] firstArray = {1, 2, 3, 4};
		int[] expecting = {4, 3, 2, 1};
		int[] twoArray = turn.back(firstArray);
		assertThat(twoArray, is(expecting));

	}
}
@@ -267,16 +267,26 @@
 nIsArray
+EvenNumber
 ThenIsBa
@@ -476,10 +476,286 @@
 g));%0A%0A%09%7D
+%0A%0A%09/**.%0A%09* Test method back%0A%09*/%0A%09@Test%0A%09public void whenIsArrayOddNumberThenIsBackArray() %7B%0A%09%09Turn turn = new Turn();%0A%09%09int%5B%5D firstArray = %7B1, 2, 3, 4, 5%7D;%0A%09%09int%5B%5D expecting = %7B5, 4, 3, 2, 1%7D;%0A%09%09int%5B%5D twoArray = turn.back(firstArray);%0A%09%09assertThat(twoArray, is(expecting));%0A%09%7D
 %0A%7D

add filr for chapter_001_5.1