public void CalculateTest(double value, double expected) { var calculator = new Cos(); var actualResult = calculator.SingleCalculate(value); Assert.AreEqual(expected, actualResult, 0.00001); }