/// <summary> /// Method that computes the arc sine of the grad angle /// </summary> /// <param name="first">Parameter that is entered by the user</param> /// <returns>Calculated value</returns> public double Calculate(double first) { var converter = new RadToGradConverter(); var calculator = new ArcsinCalc(); return(converter.Calculate(calculator.Calculate(first))); }
public void ArcsinCalcTest(double first, double expected) { var calc = new ArcsinCalc(); double result = calc.Calculate(first); Assert.AreEqual(expected, result, 0.001); }