Пример #1
0
        public void TestRightTriangleArea()
        {
            RightTriangle rtriangle = new RightTriangle(3, 4, 5);
            double        expected  = 6;
            double        actual    = rtriangle.CalcArea();

            Assert.AreEqual(expected, actual, "Area not calculated correctly");
        }
        public void CalcAreaTest()
        {
            var rightTriangle = new RightTriangle(3f, 7f);

            Assert.AreEqual(rightTriangle.CalcArea(), 10.5f);
        }