public void CalculateTest(double firstValue, double expected) { var calculator = new Calculator.OneArgument.Cos(); double result = calculator.Calculator(firstValue); Assert.AreEqual(expected, result, 0.001); }
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); }