public void CalculateTest(double firstValue, double expected) { var calculator = new Arcsine(); var actualResult = calculator.Calculate(firstValue); Assert.AreEqual(expected, actualResult, 0.001); }
public void ArcSineInvalidValueTest() { var calculator = new Arcsine(); Assert.Throws <Exception>(() => calculator.Calculate(234)); }
public void ExceptionLessThanZeroTest(double firstArgument) { var calculator = new Arcsine(); Assert.Throws <Exception>(() => calculator.Calculate(firstArgument)); }