示例#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);
        }