public void CalculateTest(double firstArgument, double expectedResult) { var calculator = new ArcCosineCalculator(); var actualResult = calculator.Calculate(firstArgument); Assert.AreEqual(expectedResult, actualResult, 0.001); }
public void ExceptionTest() { var calculator = new ArcCosineCalculator(); Assert.Throws <Exception>(() => calculator.Calculate(2)); }