Exemplo n.º 1
0
        public void TestTriangleCorrectArea()
        {
            Triangle triangle = new Triangle(5, 7, 8.6);

            double expectedArea = ( 5D * 7D ) / 2;
            double actualArea = triangle.Area();

            Assert.AreEqual(expectedArea, actualArea, 1e-5);
        }