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