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