Ejemplo n.º 1
0
        public void ConvertHigherDigits_ReturnNumber()
        {
            NumberToWord n2w;

            n2w = new NumberToWord("0");

            Assert.AreEqual("one hundred twenty-three", n2w.ConvertHundred("123"));
            Assert.AreEqual("one hundred", n2w.ConvertHundred("100"));
            Assert.AreEqual("one hundred one", n2w.ConvertHundred("101"));
            Assert.AreEqual("one hundred ten", n2w.ConvertHundred("110"));
            Assert.AreEqual("one", n2w.ConvertHundred("1"));
            Assert.AreEqual("ten", n2w.ConvertHundred("10"));
        }