Exemple #1
0
        public void Test8000()
        {
            var    translation = new NumberTranslation();
            string expected    = "eight thousand";
            string actual      = translation.Number2Words(8000);

            Assert.Equal(expected, actual);
        }
Exemple #2
0
        public void Test1()
        {
            var    translation = new NumberTranslation();
            string expected    = "one";
            string actual      = translation.Number2Words(1);

            Assert.Equal(expected, actual);
        }
Exemple #3
0
        public void Test958()
        {
            var    translation = new NumberTranslation();
            string expected    = "nine hundred fifty-eight";
            string actual      = translation.Number2Words(958);

            Assert.Equal(expected, actual);
        }
Exemple #4
0
        public void Test630()
        {
            var    translation = new NumberTranslation();
            string expected    = "six hundred thirty";
            string actual      = translation.Number2Words(630);

            Assert.Equal(expected, actual);
        }
Exemple #5
0
        public void Test200()
        {
            var    translation = new NumberTranslation();
            string expected    = "two hundred";
            string actual      = translation.Number2Words(200);

            Assert.Equal(expected, actual);
        }
Exemple #6
0
        public void Test15368()
        {
            var    translation = new NumberTranslation();
            string expected    = "fifteen thousand three hundred sixty-eight";
            string actual      = translation.Number2Words(15368);

            Assert.Equal(expected, actual);
        }
Exemple #7
0
        public void Test700000()
        {
            var    translation = new NumberTranslation();
            string expected    = "seven hundred thousand";
            string actual      = translation.Number2Words(700000);

            Assert.Equal(expected, actual);
        }
Exemple #8
0
        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);
        }
Exemple #9
0
        public void Test890069()
        {
            var    translation = new NumberTranslation();
            string expected    = "eight hundred ninety thousand sixty-nine";
            string actual      = translation.Number2Words(890069);

            Assert.Equal(expected, actual);
        }
Exemple #10
0
 public void Test20()
 {
     Assert.AreEqual("twenty", NumberTranslation.Number2Words(20));
 }
Exemple #11
0
 public void Test8()
 {
     Assert.AreEqual("eight", NumberTranslation.Number2Words(8));
 }
Exemple #12
0
 public void Test5()
 {
     Assert.AreEqual("five", NumberTranslation.Number2Words(5));
 }
Exemple #13
0
 public void Test513906()
 {
     Assert.AreEqual("five hundred thirteen thousand nine hundred six", NumberTranslation.Number2Words(513906));
 }
Exemple #14
0
 public void Test1003()
 {
     Assert.AreEqual("one thousand three", NumberTranslation.Number2Words(1003));
 }
Exemple #15
0
 public void Test650()
 {
     Assert.AreEqual("six hundred fifty", NumberTranslation.Number2Words(650));
 }
Exemple #16
0
 public void Test800()
 {
     Assert.AreEqual("eight hundred", NumberTranslation.Number2Words(800));
 }
Exemple #17
0
 public void Test301()
 {
     Assert.AreEqual("three hundred one", NumberTranslation.Number2Words(301));
 }
Exemple #18
0
 public void Test793()
 {
     Assert.AreEqual("seven hundred ninety-three", NumberTranslation.Number2Words(793));
 }
Exemple #19
0
        public void When按下轉換()
        {
            int number = ScenarioContext.Current.Get <int>();

            ScenarioContext.Current.Set(NumberTranslation.Number2Words(number));
        }
Exemple #20
0
 public void Test0()
 {
     Assert.AreEqual("zero", NumberTranslation.Number2Words(0));
 }
 public void Number2WordsTest21()
 {
     Assert.AreEqual("twenty-one", NumberTranslation.Number2Words(21));
 }
Exemple #22
0
 public void Test1000()
 {
     Assert.AreEqual("one thousand", NumberTranslation.Number2Words(1000));
 }
 public void BigNumber2Words(string word, int num)
 {
     Assert.AreEqual(word, NumberTranslation.Number2Words(num));
 }
Exemple #24
0
 public void Test42553()
 {
     Assert.AreEqual("forty-two thousand five hundred fifty-three", NumberTranslation.Number2Words(42553));
 }
Exemple #25
0
 public void Test1()
 {
     Assert.AreEqual("one", NumberTranslation.Number2Words(1));
 }
Exemple #26
0
 public void Test628393()
 {
     Assert.AreEqual("six hundred twenty-eight thousand three hundred ninety-three",
                     NumberTranslation.Number2Words(628393));
 }
Exemple #27
0
 public void Test3()
 {
     Assert.AreEqual("three", NumberTranslation.Number2Words(3));
 }