@@ -0,0 +1,842 @@
+package by.vorokhobko.Polymorphism;%0A%0Aimport org.junit.Test;%0Aimport static org.hamcrest.core.Is.is;%0Aimport static org.junit.Assert.assertThat;%0A%0A/**%0A * TriangleTest.%0A *%0A * Class TriangleTest for testing class Triangle part 005, lesson 2.%0A * @author Evgeny Vorokhobko (vorokhobko2011@yandex.ru).%0A * @since 04.04.2017.%0A * @version 1.%0A */%0A%0Apublic class TriangleTest %7B%0A    /**%0A     * Test.%0A     * The method draws a triangle in pseudographics.%0A     */%0A    @Test%0A    public void drawingOfTheTriangle() %7B%0A        final int h = 3;%0A        final Shape triangle = new Triangle(h);%0A        String outPrint = %22  %5E %22 + System.getProperty(%22line.separator%22) + %22  %5E %5E %22 + System.getProperty(%22line.separator%22) + %22  %5E %5E %5E %22 + System.getProperty(%22line.separator%22);%0A        String result = triangle.pic(triangle);%0A        assertThat(result, is(outPrint));%0A    %7D%0A%7D

add Test class Triangle