public void TestAreaSquare([Range(0, 20)] int x) { var temp = GeometricFigures.Square.GetArea(x); Assert.AreEqual(ExpectedResult.GetAreaSquare(x), temp); }
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); }
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); }
public void TestLengthRectangle([Range(0, 20)] int x) { var temp = GeometricFigures.Square.GetLength(x); Assert.AreEqual(ExpectedResult.GetLengthSquare(x), temp); }