Пример #1
0
 public void SixFor3x2Rectangle()
 {
     var result = new Rectangle{_height =3,_width = 2};
     Assert.AreEqual(6,AreaCalculator.CalculateArea(result));
 }
Пример #2
0
 public static int CalculateArea(Rectangle r)
 {
     return r._height * r._width;
 }