Ejemplo n.º 1
0
 public void TriangleIsNotIsosceles()
 {
     //Arrange
     Triangle t = new Triangle(10, 11, 15);
     //Act
     bool result = t.isIsosceles();
     //Assert
     Assert.IsFalse(result);
 }
Ejemplo n.º 2
0
        public void PointsArrayConstructor()
        {
            //Arrange
            Point a = new Point(0, 0);
            Point b = new Point(5, 0);
            Point c = new Point(0, 5);
            Point[] points = { a, b, c };

            Triangle t = new Triangle(points);
            //Act
            bool result = t.isIsosceles();
            //Assert
            Assert.IsTrue(result);
        }