Exemple #1
0
        public void ConvertOnesToWords_ConvertOnesDigit_One()
        {
            string correctNumWord = "one";

            char[] newArray = { '1' };
            string numWord  = NumberConvert.ConvertOnesToWords(newArray);

            Assert.AreEqual(correctNumWord, numWord);
        }
Exemple #2
0
        public void ConvertTensToWords_ConvertTensDigit_21()
        {
            string correctNumWord = "twentyone";

            char[] newArray = { '2', '1' };
            string numWord  = NumberConvert.ConvertOnesToWords(newArray);

            Assert.AreEqual(correctNumWord, numWord);
        }