public void ValidCurrencyWithoutCentsCase() { decimal input = 543m; string result = ConverToWords.ToWords(input); Assert.AreEqual("Five Hundred Fourty Three Dollars", result, "Invalid conversion of valid currency input without cents"); }
public void ZeroCurrencyCase() { decimal input = 0; string result = ConverToWords.ToWords(input); Assert.AreEqual("Zero Dollars", result, "Zero input not handled appropriately"); }
public void ValidCurrencyCase() { decimal input = 543.35m; string result = ConverToWords.ToWords(input); Assert.AreEqual("Five Hundred Fourty Three Dollars and Thirty Five Cents", result, "Invalid conversion of valid currency input"); }