public void AddTwoLargeNumbers() { SimpleCalc simpleCalc = new SimpleCalc(); double a = 1973820.0; double b = 1256890.0; double ans = a + b; double result = simpleCalc.addNumbers(a, b); Assert.AreEqual(result, ans); }
public void AddOneZeroOneNegative() { SimpleCalc simpleCalc = new SimpleCalc(); double a = 0.0; double b = -10.0; double ans = a + b; double result = simpleCalc.addNumbers(a, b); Assert.AreEqual(result, ans); }
public void AddTwoZeros() { SimpleCalc simpleCalc = new SimpleCalc(); double a = 0.0; double b = 0.0; double ans = a + b; double result = simpleCalc.addNumbers(a, b); Assert.AreEqual(result, ans); }
public void AddOneNgeativeOnePositive() { SimpleCalc simpleCalc = new SimpleCalc(); double a = -10.0; double b = 14.0; double ans = a + b; double result = simpleCalc.addNumbers(a, b); Assert.AreEqual(result, ans); }
public void AddDecimalAndNegative() { SimpleCalc simpleCalc = new SimpleCalc(); double a = 0.120; double b = -2.0; double ans = a + b; double result = simpleCalc.addNumbers(a, b); Assert.AreEqual(result, ans); }
public void AddWholeNumberAndDecimal() { SimpleCalc simpleCalc = new SimpleCalc(); double a = 12.0; double b = 0.1230; double ans = a + b; double result = simpleCalc.addNumbers(a, b); Assert.AreEqual(result, ans); }