public void CalculateTest(double firstValue, double expected) { var calculator = new ArcsinxCalculator(); var result = calculator.Calculate(firstValue); Assert.AreEqual(expected, result, 0.0001); }
public void ExceptionByRangeTest() { var calculator = new ArcsinxCalculator(); Assert.Throws <Exception>(() => calculator.Calculate(-2)); }