Esempio n. 1
0
        public void ConvertLast2Digits_ReturnNumber()
        {
            NumberToWord n2w;

            n2w = new NumberToWord("0");
            Assert.AreEqual("", n2w.ConvertLast2Digits("0"));

            n2w = new NumberToWord("5");
            Assert.AreEqual("five", n2w.ConvertLast2Digits("5"));

            n2w = new NumberToWord("14");
            Assert.AreEqual("fourteen", n2w.ConvertLast2Digits("14"));

            n2w = new NumberToWord("1384");
            Assert.AreEqual("eighty-four", n2w.ConvertLast2Digits("1384"));
        }