Exemple #1
0
        public void NumberToWordsTest_1()
        {
            var solution = new _0273_IntegerToEnglishWords();
            var result   = solution.NumberToWords(123);

            Assert.AreEqual("One Hundred Twenty Three", result);
        }
Exemple #2
0
        public void NumberToWordsTest_5()
        {
            var solution = new _0273_IntegerToEnglishWords();
            var result   = solution.NumberToWords(0);

            Assert.AreEqual("Zero", result);
        }
Exemple #3
0
        public void NumberToWordsTest_3()
        {
            var solution = new _0273_IntegerToEnglishWords();
            var result   = solution.NumberToWords(1234567);

            Assert.AreEqual("One Million Two Hundred Thirty Four Thousand Five Hundred Sixty Seven", result);
        }
Exemple #4
0
        public void NumberToWordsTest_4()
        {
            var solution = new _0273_IntegerToEnglishWords();
            var result   = solution.NumberToWords(1234567891);

            Assert.AreEqual("One Billion Two Hundred Thirty Four Million Five Hundred Sixty Seven Thousand Eight Hundred Ninety One", result);
        }
Exemple #5
0
        public void NumberToWordsTest_2()
        {
            var solution = new _0273_IntegerToEnglishWords();
            var result   = solution.NumberToWords(12345);

            Assert.AreEqual("Twelve Thousand Three Hundred Forty Five", result);
        }