Exemplo n.º 1
0
 public void TwentyFor4X5ShapeFromRectangle()
 {
     Shape myShape = new Rectangle() { Height = 4, Width = 5 };
     Assert.AreEqual(20, myShape.Area());
 }
Exemplo n.º 2
0
 public void SixFor2X3Rectangle()
 {
     var myRectangle = new Rectangle { Height = 2, Width = 3 };
     Assert.AreEqual(6, myRectangle.Area());
 }