public void CalculateArea_withSquare_ShouldReturn25() { //arrange var square = new Squere{ Width = 5}; //act var result = AreaCalculator.CalculateArea(square); //assert Assert.AreEqual(25, result); }
public void CalculateArea_withRectangle_ShouldReturn25() { //arrange Rectangle newRectangle = new Squere(); newRectangle.Width = 10; newRectangle.Height = 8; //act var result = AreaCalculator.CalculateArea(newRectangle); //assert Assert.AreEqual(80, result); }