public void CalculateTest(double firstValue, double expected) { var calculator = new Cosinus(); var actualResult = calculator.Calculate(firstValue); Assert.AreEqual(expected, actualResult, 0.0001); }
public void CalculateTestExceptionTest() { IOneArgumentCalculator calculator = new Cosinus(); Assert.Throws <Exception>(() => calculator.Calculate(3)); }