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