public void ExceptionIfZeroTriangleSide() { var calculator = new RightTriangleAreaCalculator(); calculator.Calculate(150, 10, 0); }
public void ExceptionIfNegativeTriangleSide() { var calculator = new RightTriangleAreaCalculator(); calculator.Calculate(-1, -1, 23); }
public void ExceptionIfTriangleIsNotRight() { var calculator = new RightTriangleAreaCalculator(); calculator.Calculate(150, 10, 10); }
public void CalculateAreaTest() { var calculator = new RightTriangleAreaCalculator(); var result = calculator.Calculate(1, 1, 2); Assert.AreEqual(result, 1); }