Ejemplo n.º 1
0
        public void FigureTriangleTest()
        {
            int a = 6;
            int b = 8;
            int c = 10;

            Figures.IFigure figure   = new Figures.Triangle(a, b, c);
            double          expected = 24;


            double actual = figure.GetArea();

            Assert.Equal(expected, actual);
        }
Ejemplo n.º 2
0
        public void AreaOfRectangleTest()
        {
            int a = 6;
            int b = 8;
            int c = 10;

            Figures.Triangle triangle = new Figures.Triangle(a, b, c);
            double           expected = 24;


            double actual = triangle.GetArea();

            Assert.Equal(expected, actual);
        }