示例#1
0
 public void fiftyfive()
 {
     int number = 55;
     var translator = new IntToWordConverter();
     var result = translator.GetText(number);
     Assert.AreEqual("fifty-five", result);
 }
示例#2
0
 public void TwentySeven()
 {
     int number = 27;
     var translator = new IntToWordConverter();
     var result = translator.GetText(number);
     Assert.AreEqual("twenty-seven", result);
 }
示例#3
0
 public void NinetyNine()
 {
     int number = 99;
     var translator = new IntToWordConverter();
     var result = translator.GetText(number);
     Assert.AreEqual("ninety-nine", result);
 }
示例#4
0
 public void ThirtySix()
 {
     int number = 36;
     var translator = new IntToWordConverter();
     var result = translator.GetText(number);
     Assert.AreEqual("thirty-six", result);
 }
示例#5
0
 public void Forty()
 {
     int number = 40;
     var translator = new IntToWordConverter();
     var result = translator.GetText(number);
     Assert.AreEqual("forty", result);
 }
示例#6
0
 public void Two()
 {
     int number = 2;
     var translator = new IntToWordConverter();
     var result = translator.GetText(number);
     Assert.AreEqual("two", result);
 }
示例#7
0
 public void One()
 {
     int one = 1;
     var translator = new IntToWordConverter();
     var result = translator.GetText(one);
     Assert.AreEqual("one", result);
 }
示例#8
0
 public void OneHundredAndEightySeven()
 {
     int number = 187;
     var translator = new IntToWordConverter();
     var result = translator.GetText(number);
     Assert.AreEqual("one hundred and eighty-seven", result);
 }
示例#9
0
 public void OneHundredAndFour()
 {
     int number = 104;
     var translator = new IntToWordConverter();
     var result = translator.GetText(number);
     Assert.AreEqual("one hundred and four", result);
 }
示例#10
0
 public void thousand()
 {
     int number = 1000;
     var translator = new IntToWordConverter();
     var result = translator.GetText(number);
     Assert.AreEqual("one thousand", result);
 }
示例#11
0
 public void SevenHundredNinetyNine()
 {
     int number = 799;
     var translator = new IntToWordConverter();
     var result = translator.GetText(number);
     Assert.AreEqual("seven hundred and ninety-nine", result);
 }
示例#12
0
 public void fiveHundred()
 {
     int number = 500;
     var translator = new IntToWordConverter();
     var result = translator.GetText(number);
     Assert.AreEqual("five hundred", result);
 }