package vkaretko.Task_3_1;

import org.junit.Test;

import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;

/**
 * Тест-класс для класс Triangle
 *
 * @author Karetko Victor
 * @version 1.00
 * @since 30.20.2016
 */

public class TriangleTest {
    @Test
    public void whenAddThreeCorrectPointsResultFifty() {
        Point a = new Point(0d,0d),
              b = new Point(10d,0d),
              c = new Point(0d,10d);
        Triangle tri = new Triangle(a,b,c);
        assertThat(tri.area(), is(50d));
    }

    @Test
    public void whenAddThreePointsAndOneSideMoreThenTwoOthersResultZero() {
        Point a = new Point(0d,0d),
              b = new Point(30d,0d),
              c = new Point(60d,0d);
        Triangle tri = new Triangle(a,b,c);
        assertThat(tri.area(), is(0d));
    }
}

@@ -358,33 +358,33 @@
 new Point(0d,0d)
-,
+;
 %0A              b
@@ -368,37 +368,37 @@
 0d,0d);%0A        
-     
+Point
  b = new Point(1
@@ -399,25 +399,25 @@
 oint(10d,0d)
-,
+;
 %0A           
@@ -405,37 +405,37 @@
 0d,0d);%0A        
-     
+Point
  c = new Point(0
@@ -650,25 +650,25 @@
 Point(0d,0d)
-,
+;
 %0A           
@@ -664,21 +664,21 @@
         
-     
+Point
  b = new
@@ -691,17 +691,17 @@
 (30d,0d)
-,
+;
 %0A       
@@ -701,21 +701,21 @@
         
-     
+Point
  c = new

Update TriangleTest.java