public void TestMethod12_Decimal_Zero_Comma() { var program = new ConsoleApplication2.NumberToWordsProgram(); Assert.AreEqual("One Hundred Twenty-Three Dollars ", program.ConvertToWords("123.0")); }
public void TestMethod11_Decimal_NotNumber_Symbol() { var program = new ConsoleApplication2.NumberToWordsProgram(); Assert.AreEqual("Invalid Cent Value", program.ConvertToWords("1234,!@")); }
public void TestMethod1_RightResultUsingComma() { var program = new ConsoleApplication2.NumberToWordsProgram(); Assert.AreEqual("One Hundred Twenty-Three Quadrillion Four Hundred Fifty-Six Trilion Seven Hundred Eighty-Nine Billion Twelve Million Three Hundred Forty-Five Thousand Six Hundred Seventy-Eight Dollars and Twenty Cents ", program.ConvertToWords("123456789012345678,20")); }
public void TestMethod7_NotNumber_Minus() { var program = new ConsoleApplication2.NumberToWordsProgram(); Assert.AreEqual("Invalid Dollar Value", program.ConvertToWords("-1")); }
public void TestMethod8_NotNumber_LimitNumber() { var program = new ConsoleApplication2.NumberToWordsProgram(); Assert.AreEqual("Maximum Input 37 Characters", program.ConvertToWords("100000000000000000000000000000000000000")); }
public void TestMethod3_RightResultNoDecimal() { var program = new ConsoleApplication2.NumberToWordsProgram(); Assert.AreEqual("One Hundred Twenty-Three Thousand Four Hundred Fifty-Six Dollars ", program.ConvertToWords("123456")); }
public void TestMethod5_NotNumber_Alphabet() { var program = new ConsoleApplication2.NumberToWordsProgram(); Assert.AreEqual("Invalid Dollar Value", program.ConvertToWords("abcd")); }
public void TestMethod21_Cent_Three_Digit_Number_Comma() { var program = new ConsoleApplication2.NumberToWordsProgram(); Assert.AreEqual("Invalid Cent Value", program.ConvertToWords("9,123")); }
public void TestMethod19_Cent_Zero_And_Number_Comma() { var program = new ConsoleApplication2.NumberToWordsProgram(); Assert.AreEqual("Invalid Cent Value", program.ConvertToWords("0,01")); }
public void TestMethod17_Cent_Only_Comma() { var program = new ConsoleApplication2.NumberToWordsProgram(); Assert.AreEqual("One Cents ", program.ConvertToWords("0,1")); }
public void TestMethod15_More_Than_Two_Comma() { var program = new ConsoleApplication2.NumberToWordsProgram(); Assert.AreEqual("Invalid Separator Cent", program.ConvertToWords("12,34,52")); }
public void TestMethod14_More_Than_Three_Decimal_Comma() { var program = new ConsoleApplication2.NumberToWordsProgram(); Assert.AreEqual("Invalid Cent Value", program.ConvertToWords("12,345")); }