public void TestRectangleArea() { var r = new Lsp.Rectangle { Height = 2, Width = 3 }; Assert.AreEqual(6, r.CalculateArea()); }
public void Test4X5SquareArea() { Lsp.Shape shapeRectangle = new Lsp.Rectangle { Width = 4, Height = 5 }; Lsp.Shape shapeSquare = new Lsp.Square { Sidelength = 3 }; Assert.AreEqual(20, shapeRectangle.CalculateArea()); Assert.AreEqual(9, shapeSquare.CalculateArea()); }