package ru.job4j.loop;

import org.junit.Test;

import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**
* Paint Test.
*
* @author Andrey Lemdyanov (mailto:lemdyanov5@mail.ru)
* @version $Id$
* @since 0.1
*/
public class PaintTest {
/**
*Метод для отрисовки пирамиды высотой 2.
*/
@Test
public void whenPiramidWithHeightTwoThenStringWithTwoRows() {
        Paint paint = new Paint();
        String result = paint.piramid(2);
        String expected = String.format(" ^ %s^^^", System.getProperty("line.separator"));
        assertThat(result, is(expected));
    }
/**
*Метод для отрисовки пирамиды высотой 3.
*/
@Test
 public void whenPiramidWithHeightThreeThenStringWithThreeRows() {
		Paint paint = new Paint();
        String result = paint.piramid(3);
        String expected = String.format("  ^  %s ^^^ %s^^^^^", System.getProperty("line.separator"), System.getProperty("line.separator"));
        assertThat(result, is(expected));
}
}
@@ -255,24 +255,143 @@
 tTest %7B%0A/**%0A
+*%D0%9F%D0%BE%D0%BB%D0%B5 line %D0%B4%D0%BB%D1%8F %D0%BF%D0%B5%D1%80%D0%B5%D1%85%D0%BE%D0%B4%D0%B0 %D0%BD%D0%B0 %D1%81%D0%BB%D0%B5%D0%B4%D1%83%D1%8E%D1%89%D1%83%D1%8E %D1%81%D1%82%D1%80%D0%BE%D0%BA%D1%83.%0A*/%0A%09private final String line = System.getProperty(%22line.separator%22);%0A/**%0A
 *%D0%9C%D0%B5%D1%82%D0%BE%D0%B4 %D0%B4%D0%BB%D1%8F %D0%BE
@@ -419,16 +419,16 @@
 %D0%BE%D1%82%D0%BE%D0%B9 2.%0A
-
 */%0A@Test
@@ -623,44 +623,12 @@
 %5E%22, 
-System.getProperty(%22line.separator%22)
+line
 );%0A 
@@ -933,82 +933,18 @@
 %5E%22, 
-System.getProperty(%22line.separator%22), System.getProperty(%22line.separator%22)
+line, line
 );%0A 

task 4412