Exemple #1
0
 public void ShouldProvideRectanglePerimeter()
 {
     var rectangle = new Rectangle(10, 12);
     Assert.That(rectangle.Perimeter(), Is.EqualTo(44));
 }
Exemple #2
0
 public void ShouldProvideRectangleArea()
 {
     var rectangle = new Rectangle(10, 12);
     Assert.That(rectangle.Area(), Is.EqualTo(120));
 }