@@ -0,0 +1,871 @@
+package ru.job4j.loop;%0A%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.assertThat;%0Aimport static org.hamcrest.core.Is.is;%0A%0A/**%0A * PaintTest.%0A * @author mklimentiev%0A * @version 1.0%0A * @since 15.04.2017%0A*/%0Apublic class PaintTest %7B%0A%09/**%0A%09 * Test piramid.%0A%09*/%0A%09@Test%0A%09public void whenPiramidWithHeightTwoThenStringWithTwoRows() %7B%0A%09%09Paint paint = new Paint();%0A%09%09String result = paint.piramid(2);%0A%09%09String expected = String.format(%22 %5E %25s%5E%5E%5E%22, System.getProperty(%22line.separator%22));%0A%09%09assertThat(result, is(expected));%0A%09%7D%0A%0A%09/**%0A%09 * Test piramid.%0A%09*/%0A%09@Test%0A%09public void whenPiramidWithHeightThreeThenStringWithThreeRows() %7B%0A%09%09Paint paint1 = new Paint();%0A%09%09String result1 = paint1.piramid(3);%0A%09%09String expected1 = String.format(%22  %5E  %25s %5E%5E%5E %25s%5E%5E%5E%5E%5E%22, System.getProperty(%22line.separator%22), System.getProperty(%22line.separator%22));%0A%09%09assertThat(result1, is(expected1));%0A%09%7D%0A%7D%0A

add PaintTest.java