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