public void TwentyFor4X5RectangleFromSquare() { RectangleW newRectangle = new SquareW(); newRectangle.Width = 4; newRectangle.Height = 5; Assert.AreEqual(20, AreaCalculatorW.CalculateArea(newRectangle)); }
public void NineFor3X3Square() { var mySquare = new SquareW() { Height = 3 }; Assert.AreEqual(9, AreaCalculatorW.CalculateArea(mySquare)); }