Ejemplo n.º 1
0
 public void Given_a_rectangle_and_a_square_calculate_rectangle_area_as_a_square()
 {
     Rectangle newRectangle = new Square();
     newRectangle.Height = 4;
     newRectangle.Width = 6;
     var result = AreaCalculator.CalculateArea(newRectangle);
     Assert.AreEqual(24, result);
     
 }
Ejemplo n.º 2
0
 public void Given_a_square_calculate_area()
 {
     var aSquare = new Square() { Height = 5 };
     var area = AreaCalculator.CalculateArea(aSquare);
     Assert.AreEqual(25, area);
 }