package ru.pravvich;

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

public class TriangleTest {	
	@Test
	public void wthenSetPointsThenResultAreaTriangle() {
			Triangle triangle = new Triangle();
			Point a = new Point(0,0);
			Point b = new Point(0,3);
			Point c = new Point(4,0);

			double result = triangle.area(a, b, c); 						
			assertThat(result, is(6d));
	
	}
}




@@ -206,47 +206,8 @@
 ) %7B%0A
-%09%09%09Triangle triangle = new Triangle();%0A
 %09%09%09P
@@ -289,16 +289,69 @@
 t(4,0);%0A
+%09%09%09%0A%09%09%09Triangle triangle = new Triangle(a, b, c);%0A%09%09%09
 %0A%09%09%09doub

add chapter_001\lesson_3\src\test\java\ru\pravvich\TriangleTest.java