public void SinCalcTest(double first, double expected) { var calc = new SinCalc(); double result = calc.Calculate(first); Assert.AreEqual(expected, result, 0.001); }
/// <summary> /// Method that computes the 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 GradToRadConverter(); var calculator = new SinCalc(); return(calculator.Calculate(converter.Calculate(first))); }