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); }
public void TriangleArea_InvalidArguments_ThrowsException(int sideA, int sideB, int sideC) { ShouldThrowExtensions.ShouldThrow <InvalidTriangleException>(() => TriangleHelpers.Area(sideA, sideB, sideC)); }