public void ASINCalculator( double firstValue, double expected) { ASINCalculator calculator = new ASINCalculator(); double actual = calculator.Calculate(firstValue); Assert.AreEqual(expected, actual, 0.001); }
public void ASINCalculator() { ASINCalculator calculator = new ASINCalculator(); Assert.Throws <Exception>(() => calculator.Calculate(2)); }