Пример #1
0
        public void TestAreaSquare([Range(0, 20)] int x)

        {
            var temp = GeometricFigures.Square.GetArea(x);

            Assert.AreEqual(ExpectedResult.GetAreaSquare(x), temp);
        }
Пример #2
0
        public void TestAreaRectangle(
            [Range(0, 20)] int x,
            [Range(0, 20)] int y)

        {
            var temp = GeometricFigures.Rectangle.GetArea(x, y);

            Assert.AreEqual(ExpectedResult.GetAreaRectangle(x, y), temp);
        }
Пример #3
0
        public void TestAreaTriangle(
            [Range(0, 20)] int x,
            [Range(0, 20)] int y,
            [Range(0, 20)] int z)

        {
            var temp = GeometricFigures.Triangle.GetArea(x, y, z);

            Assert.AreEqual(ExpectedResult.GetAreaTriangle(x, y, z), temp);
        }
Пример #4
0
        public void TestLengthRectangle([Range(0, 20)] int x)
        {
            var temp = GeometricFigures.Square.GetLength(x);

            Assert.AreEqual(ExpectedResult.GetLengthSquare(x), temp);
        }