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() {
			Point a = new Point(0,0);
			Point b = new Point(0,3);
			Point c = new Point(4,0);
			
			Triangle triangle = new Triangle(a, b, c);
			
			double result = triangle.area(a, b, c); 						
			assertThat(result, is(6d));
	
	}
}




@@ -204,16 +204,70 @@
 e() %7B%0A%09%09
+%0A%09%09//%D0%92%D1%8B%D1%87%D0%B8%D1%81%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5 %D0%BF%D0%BB%D0%BE%D1%89%D0%B0%D0%B4%D0%B8 %D0%B4%D0%BB%D1%8F %D0%BD%D0%BE%D1%80%D0%BC%D0%B0%D0%BB%D1%8C%D0%BD%D0%BE%D0%B3%D0%BE %D1%82%D1%80%D0%B5%D1%83%D0%B3%D0%BE%D0%BB%D1%8C%D0%BD%D0%B8%D0%BA%D0%B0%0A%09
 %09Point a
@@ -283,25 +283,24 @@
 int(0,0);%0A%09%09
-%09
 Point b = ne
@@ -313,17 +313,16 @@
 t(0,3);%0A
-%09
 %09%09Point 
@@ -341,21 +341,16 @@
 t(4,0);%0A
-%09%09%09%0A%09
 %09%09Triang
@@ -386,21 +386,16 @@
  b, c);%0A
-%09%09%09%0A%09
 %09%09double
@@ -437,17 +437,16 @@
 %09%09%09%09%09%0A%09%09
-%09
 assertTh
@@ -466,17 +466,520 @@
 (6d));%0A%09
-%0A%09
+%7D%0A%09%0A%09%0A%09@Test%0A    public void whenTheSumOfAnyTwoSidesIsGreaterThanOrEqualToAThirdThenLeaveAMessageTriangleDoesNotExist() %7B%0A%0A        //%D0%95%D1%81%D0%BB%D0%B8 %D1%81%D1%83%D0%BC%D0%BC%D0%B0 %D0%B4%D0%B2%D1%83%D1%85 %D0%BB%D1%8E%D0%B1%D1%8B%D1%85 %D1%81%D1%82%D0%BE%D1%80%D0%BE%D0%BD %D0%B1%D0%BE%D0%BB%D1%8C%D1%88%D0%B5 %D0%B8%D0%BB%D0%B8 %D1%80%D0%B0%D0%B2%D0%BD%D0%B0 %D1%82%D1%80%D0%B5%D1%82%D0%B5%D0%B9.%0A        Point aUnreal = new Point(1,1);%0A        Point bUnreal = new Point(1,2);%0A        Point cUnreal = new Point(1,3);%0A        Triangle triangleExist = new Triangle(aUnreal, bUnreal, cUnreal);%0A        double resultUnreal = triangleExist.area(aUnreal, bUnreal, cUnreal);%0A        assertThat(resultUnreal, is(-1D));%0A    
 %7D%0A%7D%0A%0A%0A%0A

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