Exemple #1
0
 public void TriangleRectangle_SidesAreZeroAndNegative_ThrowsArgumentException()
 {
     Assert.ThrowsException <ArgumentException>(
         () => TriangleHelpers.IsRectangular(-1, 0, 5),
         "Sides must be positive");
 }
Exemple #2
0
 public void TriangleRectangular_ResultFalse()
 {
     Assert.IsFalse(TriangleHelpers.IsRectangular(3, 4, 4));
 }