public void CalculateTest(double firstValue, double secondValue, double expected) { var calculator = new Substraction(); var actualResult = calculator.Calculate(firstValue, secondValue); Assert.AreEqual(expected, actualResult); }
public void SubstactionTest(double first, double second, double expected) { ITwoArgumentsCalculator calculator = new Substraction(); double result = calculator.Calculate(first, second); Assert.AreEqual(expected, result); }
public void TestCalculate() { var operation = new Substraction(); var answer = operation.Calculate(1.0, 2.0); Assert.AreEqual(-1.0, answer, 0.0001); }
public void SubstractionTest() { var calculator = new Substraction(); Assert.AreEqual(2, calculator.Calculate(3, 1)); }