public void ArsinTest(double first, double expected) { IOneArgumentsCalculator calculator = new ArcsinCalculator(); double result = calculator.Calculator(first); Assert.AreEqual(expected, result, 0.0001); }
public void ArsinFailTest() { ArcsinCalculator calculator = new ArcsinCalculator(); Assert.Throws<Exception>(() => calculator.Calculator(60)); }