public void CalculateTest() { IOneArgumentCalculator calculator = new Cotangent(); double result = calculator.Calculate(1); Assert.AreEqual(0.64, result, 0.01); }
public void CalculateTest(double firstValue, double expected) { var calculator = new Cotangent(); var actualResult = calculator.Calculate(firstValue); Assert.AreEqual(expected, actualResult, 0.0001); }