public void AddTwoPlusTwoWithTotal() { IFormula AddFormula = new AddFormula(); string ExpectedValue = "The sum of 2 + 2 equals 4"; string ActualValue; FormulaValues.Add("2"); FormulaValues.Add("2"); TotalValue = "4"; ActualValue = AddFormula.GenerateFormula(FormulaValues, "4"); Assert.AreEqual(ExpectedValue, ActualValue); }
public void AddTwoKPlusFiveKWithTotal() { IFormula AddFormula = new AddFormula(); string ExpectedValue = "The sum of 2000 + 5000 equals 7000"; string ActualValue; FormulaValues.Add("2000"); FormulaValues.Add("5000"); TotalValue = "7000"; ActualValue = AddFormula.GenerateFormula(FormulaValues, "7000"); Assert.AreEqual(ExpectedValue, ActualValue); }
public void AddThreeKPlusFiveKPlusTenKPlusSixKWithTotal() { IFormula AddFormula = new AddFormula(); string ExpectedValue = "The sum of 3000 + 5000 + 10000 + 6000 equals 24000"; string ActualValue; FormulaValues.Add("3000"); FormulaValues.Add("5000"); FormulaValues.Add("10000"); FormulaValues.Add("6000"); TotalValue = "24000"; ActualValue = AddFormula.GenerateFormula(FormulaValues, "24000"); Assert.AreEqual(ExpectedValue, ActualValue); }