public void TestMethod6() { var sut = new IntegerToEnglish(); var result = sut.NumberToWords(1000); Assert.AreEqual("One Thousand", result); }
public void TestMethod5() { var sut = new IntegerToEnglish(); var result = sut.NumberToWords(20); Assert.AreEqual("Twenty", result); }
public void TestMethod4() { var sut = new IntegerToEnglish(); var result = sut.NumberToWords(1234567891); Assert.AreEqual("One Billion Two Hundred Thirty Four Million Five Hundred Sixty Seven Thousand Eight Hundred Ninety One", result); }
public void TestMethod3() { var sut = new IntegerToEnglish(); var result = sut.NumberToWords(1234567); Assert.AreEqual("One Million Two Hundred Thirty Four Thousand Five Hundred Sixty Seven", result); }
public void TestMethod2() { var sut = new IntegerToEnglish(); var result = sut.NumberToWords(12345); Assert.AreEqual("Twelve Thousand Three Hundred Forty Five", result); }
public void TestMethod1() { var sut = new IntegerToEnglish(); var result = sut.NumberToWords(123); Assert.AreEqual("One Hundred Twenty Three", result); }
void PassingTest() { var intToEnglish = new IntegerToEnglish(); var inputData = 1234; var expectedOutput = "one thousand two hundred thirty four"; Assert.Equal(new CultureInfo("en-US", false).TextInfo.ToTitleCase(expectedOutput), intToEnglish.NumberToWords(inputData)); Assert.Equal(new CultureInfo("en-US", false).TextInfo.ToTitleCase("one hundred"), intToEnglish.NumberToWords(100)); }