public void calculateTest() { Additioner calculator = new Additioner(); Assert.AreEqual(0, calculator.calculate(6, 6)); Assert.AreEqual(10, calculator.calculate(15, 5)); Assert.AreEqual(0.25, calculator.calculate(0.75, 0.25)); }
public void calculateTest() { Additioner calculator = new Additioner(); Assert.AreEqual(10, calculator.calculate(6, 4)); Assert.AreEqual(36, calculator.calculate(12, 24)); Assert.AreEqual(5.9, calculator.calculate(5.2, 0.7)); }
public void CalculationTest() { var calculator = new Additioner(); double actual = calculator.calculate(2, 3); Assert.AreEqual(5, actual, 0.00); }