public void arrayConstructorTest() { double[] arraySides; arraySides = new double[] { 1.3, 3.5, 2.3 }; Triangle tria = new Triangle(arraySides); Assert.IsTrue(tria.isCorrectTriangle()); }
public void arrayPointConstructorTest() { Point pointa = new Point(1, 0); Point pointb = new Point(2, 3); Point pointc = new Point(3, 5); Point[] pointArray; pointArray = new Point[] {pointa, pointb, pointc}; Triangle tria = new Triangle(pointArray); Assert.IsTrue(tria.isCorrectTriangle()); }
public void isCorrectTriangleTest() { Triangle tria = new Triangle(2.2, 3.2, 2.2); Assert.IsTrue(tria.isCorrectTriangle()); }
public void pointConstructorTest() { Point pointa = new Point(1, 0); Point pointb = new Point(2, 3); Point pointc = new Point(3, 5); Triangle tria = new Triangle(pointa, pointb, pointc); Assert.IsTrue(tria.isCorrectTriangle()); }