Exemple #1
0
 public void arrayConstructorTest()
 {
     double[] arraySides;
     arraySides = new double[] { 1.3, 3.5, 2.3 };
     Triangle tria = new Triangle(arraySides);
     Assert.IsTrue(tria.isCorrectTriangle());
 }
Exemple #2
0
 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());
 }
Exemple #3
0
 public void isCorrectTriangleTest()
 {
     Triangle tria = new Triangle(2.2, 3.2, 2.2);
     Assert.IsTrue(tria.isCorrectTriangle());
 }
Exemple #4
0
 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());
 }