public void SquaringTest2(double firstValue, double expected) { IOneArgumentCalculate calculator = new Squaring(); double result = calculator.Calculate(firstValue); Assert.AreEqual(expected, result, 0.00001); }
public void CalculateTest(double firstValue, double expected) { var calculator = new Squaring(); var actualResult = calculator.Calculate(firstValue); Assert.AreEqual(expected, actualResult); }
public void TestSquaring(double firstArgument, double output) { var calculator = new Squaring(); var testResult = calculator.Calculate(firstArgument); Assert.AreEqual(output, testResult, 0.0000001); }
public void SquaringTest(double value, double expected) { var calculator = new Squaring(); var actualResult = calculator.Calculate(value); Assert.AreEqual(expected, actualResult, 0.001); }
public void SquaringTest2() { IOneArgumentCalculate calculator = new Squaring(); Assert.Throws <Exception>(() => calculator.Calculate(12)); }