public void Test8000() { var translation = new NumberTranslation(); string expected = "eight thousand"; string actual = translation.Number2Words(8000); Assert.Equal(expected, actual); }
public void Test1() { var translation = new NumberTranslation(); string expected = "one"; string actual = translation.Number2Words(1); Assert.Equal(expected, actual); }
public void Test958() { var translation = new NumberTranslation(); string expected = "nine hundred fifty-eight"; string actual = translation.Number2Words(958); Assert.Equal(expected, actual); }
public void Test630() { var translation = new NumberTranslation(); string expected = "six hundred thirty"; string actual = translation.Number2Words(630); Assert.Equal(expected, actual); }
public void Test200() { var translation = new NumberTranslation(); string expected = "two hundred"; string actual = translation.Number2Words(200); Assert.Equal(expected, actual); }
public void Test15368() { var translation = new NumberTranslation(); string expected = "fifteen thousand three hundred sixty-eight"; string actual = translation.Number2Words(15368); Assert.Equal(expected, actual); }
public void Test700000() { var translation = new NumberTranslation(); string expected = "seven hundred thousand"; string actual = translation.Number2Words(700000); Assert.Equal(expected, actual); }
public void Test999999() { var translation = new NumberTranslation(); string expected = "nine hundred ninety-nine thousand nine hundred ninety-nine"; string actual = translation.Number2Words(999999); Assert.Equal(expected, actual); }
public void Test890069() { var translation = new NumberTranslation(); string expected = "eight hundred ninety thousand sixty-nine"; string actual = translation.Number2Words(890069); Assert.Equal(expected, actual); }
public void Test20() { Assert.AreEqual("twenty", NumberTranslation.Number2Words(20)); }
public void Test8() { Assert.AreEqual("eight", NumberTranslation.Number2Words(8)); }
public void Test5() { Assert.AreEqual("five", NumberTranslation.Number2Words(5)); }
public void Test513906() { Assert.AreEqual("five hundred thirteen thousand nine hundred six", NumberTranslation.Number2Words(513906)); }
public void Test1003() { Assert.AreEqual("one thousand three", NumberTranslation.Number2Words(1003)); }
public void Test650() { Assert.AreEqual("six hundred fifty", NumberTranslation.Number2Words(650)); }
public void Test800() { Assert.AreEqual("eight hundred", NumberTranslation.Number2Words(800)); }
public void Test301() { Assert.AreEqual("three hundred one", NumberTranslation.Number2Words(301)); }
public void Test793() { Assert.AreEqual("seven hundred ninety-three", NumberTranslation.Number2Words(793)); }
public void When按下轉換() { int number = ScenarioContext.Current.Get <int>(); ScenarioContext.Current.Set(NumberTranslation.Number2Words(number)); }
public void Test0() { Assert.AreEqual("zero", NumberTranslation.Number2Words(0)); }
public void Number2WordsTest21() { Assert.AreEqual("twenty-one", NumberTranslation.Number2Words(21)); }
public void Test1000() { Assert.AreEqual("one thousand", NumberTranslation.Number2Words(1000)); }
public void BigNumber2Words(string word, int num) { Assert.AreEqual(word, NumberTranslation.Number2Words(num)); }
public void Test42553() { Assert.AreEqual("forty-two thousand five hundred fifty-three", NumberTranslation.Number2Words(42553)); }
public void Test1() { Assert.AreEqual("one", NumberTranslation.Number2Words(1)); }
public void Test628393() { Assert.AreEqual("six hundred twenty-eight thousand three hundred ninety-three", NumberTranslation.Number2Words(628393)); }
public void Test3() { Assert.AreEqual("three", NumberTranslation.Number2Words(3)); }