public void TwentyFor4X5RectangleFromSquare() { //This should past... It looks like a duck Rectangle newRectangle = new Square(); newRectangle.Width = 4; newRectangle.Height = 5; Assert.AreEqual(20, AreaCalculator.CalculateArea(newRectangle)); }
public void NineFor3X3Square() { var mySquare = new Square() { Height = 3 }; Assert.AreEqual(9, AreaCalculator.CalculateArea(mySquare)); }