Beispiel #1
0
        public void VerifyIfEscalenoTriangleAreaIsCorrect()
        {
            CalculateTriangleArea calculatetrianglearea = new CalculateTriangleArea();

            double result = calculatetrianglearea.calculateTriangleArea(5, 6, 7);

            double expectedResult = 14.697;

            Assert.AreEqual(expectedResult, result);
        }
Beispiel #2
0
        public void VerifyIfEquilateralTriangleAreaIsCorrect()
        {
            CalculateTriangleArea calculatetrianglearea = new CalculateTriangleArea();

            double result = calculatetrianglearea.calculateTriangleArea(5, 5, 5);

            double expectedResult = 10.825;

            Assert.AreEqual(expectedResult, result);
        }
Beispiel #3
0
        public void VerifyIfIsoscelesTriangleAreaIsCorrect()
        {
            CalculateTriangleArea calculatetrianglearea = new CalculateTriangleArea();

            double result = calculatetrianglearea.calculateTriangleArea(5, 5, 6);

            double expectedResult = 12;

            Assert.AreEqual(expectedResult, result);
        }