public void Calculate() { Degree2 calculator = new Degree2(); double result = calculator.Calculate(2); Assert.AreEqual(4, result, 0.001); }
public void CalculateTest( double firstValue, double expected) { var calculator = new Degree2(); var actualResult = calculator.Calculate(firstValue); Assert.AreEqual(expected, actualResult, 0.001); }