public void LnCalculatorTests(double firstArgument, double result) { var calculator = new Ln(); var actualResult = calculator.Calculate(firstArgument); Assert.AreEqual(result, actualResult); }
public void LnTest(double first, double expected) { Ln calculator = new Ln(); double result = calculator.Calculate(first); Assert.AreEqual(expected, result, 0.0001); }
public void CalculateLnTestStrong(double firstValue, double expected) { IOneArgumentCalculator calculator = new Ln(); double result = calculator.Calculate(firstValue); Assert.AreEqual(expected, result, 0.001); }
public void LnTest(double argument, double result) { var calculator = new Ln(); var testResult = calculator.Calculate(argument); Assert.AreEqual(result, testResult); }
public void Calculate() { Ln calculator = new Ln(); double result = calculator.Calculate(1); Assert.AreEqual(0, result, 0.001); }
public void Calculate(double input, double output) { var calculator = new Ln(); var testResult = calculator.Calculate(input); var result = output; Assert.AreEqual(testResult, result, 0.1); }
public void CalculateTest( double firstValue, double expected) { var calculator = new Ln(); var actualResult = calculator.Calculate(firstValue); Assert.AreEqual(expected, actualResult, 0.001); }
public void ExceptionLessThanZeroTest(double firstArgument) { var calculator = new Ln(); Assert.Throws <Exception>(() => calculator.Calculate(firstArgument)); }
public void NegativeLnTests() { var calculator = new Ln(); var result = calculator.Calculate(-4); }
public void ExceptionTest() { var calculator = new Ln(); Assert.Throws <Exception>(() => calculator.Calculate(0)); }