public void Calculate(double argument, double result) { var calculator = new Cos(); var testResult = calculator.Calculate(argument); Assert.AreEqual(result, testResult); }
public void CalculateTest(double argument, double result, double accracy) { var testingFunction = new Cos(); var testResult = testingFunction.Calculate(argument); Assert.AreEqual(result, testResult, accracy); }