Пример #1
0
 public void TriangleArea_ValidArguments_ReturnsResult(int sideA, int sideB, int sideC, double result)
 {
     Math.Round(TriangleHelpers.Area(sideA, sideB, sideC), DecimalNumbers).ShouldBeInRange(result - Delta, result + Delta);
 }
Пример #2
0
 public void TriangleArea_InvalidArguments_ThrowsException(int sideA, int sideB, int sideC)
 {
     ShouldThrowExtensions.ShouldThrow <InvalidTriangleException>(() => TriangleHelpers.Area(sideA, sideB, sideC));
 }