public void AdderMustAdd() { Adder theAdder = new Adder(1, 2); theAdder.Calculate(); Assert.Equal(3, theAdder.Result); }
public void Calculate() { Adder calculator = new Adder(); double result = calculator.Calculate(10, 5); Assert.AreEqual(15, result); }
public void CalculateTest() { ITwoArgumentsCalculator calculator = new Adder(); double result = calculator.Calculate(4, 2); Assert.AreEqual(6, result); }
public void AdderTest() { Adder calculator = new Adder(); double result = calculator.Calculate(2, 5); Assert.AreEqual(7, result); }
public void CalculatorTests() { var calculator = new Adder(); double actual = calculator.Calculate(1, 2); Assert.AreEqual(3, actual: actual); }
public void CalculatesCorrectly() { var adder = new Adder(); adder.Add(1); adder.Add(2); var result = adder.Calculate(); Assert.Equal(3, result); }
public void CalculateTest( double firstValue, double secondValue, double expected) { var calculator = new Adder(); var actualResult = calculator.Calculate(firstValue, secondValue); Assert.AreEqual(expected, actualResult); }
public void WhenIPressAdd() { _adder.Calculate(); }
public void TestAdder() { IExpression e = new Adder(new Constant(1.0), new Constant(2.0)); Assert.AreEqual(3, e.Calculate()); }
public int Add(int a, int b) => _adder.Calculate(a, b);