public void TwentyFor4X5ShapeFromRectangle() { Shape myShape = new Rectangle() { Height = 4, Width = 5 }; Assert.AreEqual(20, myShape.Area()); }
public void SixFor2X3Rectangle() { var myRectangle = new Rectangle { Height = 2, Width = 3 }; Assert.AreEqual(6, myRectangle.Area()); }