Beispiel #1
0
        public void CalculateAreaCorrectly(double side1, double side2, double side3, double correctArea)
        {
            var triangle = new GeometricFigures.Figures.Triangle(side1, side2, side3);
            var gotArea  = triangle.GetArea();

            Assert.Equal(gotArea, correctArea, 5);
        }
        public void DefineIfTriangleIsRightCorrectly(double side1, double side2, double side3, bool isRightTriangle)
        {
            var triangle           = new GeometricFigures.Figures.Triangle(side1, side2, side3);
            var gotIsRightTriangle = triangle.IsRightTriangle();

            Assert.Equal(gotIsRightTriangle, isRightTriangle);
        }