public void SetCurrentDictionary_SetCurrentDictionary_Dictionary()
        {
            TextNumber newTextNumber = new TextNumber();

            newTextNumber.SetCurrentDictionary();
            CollectionAssert.AreEqual(newTextNumber.GetOnesDictionary(), newTextNumber.GetCurrentDictionary());
        }
        public void AddDictionariesToList_AddDictionariesToList_Dictionary()
        {
            TextNumber newTextNumber = new TextNumber();

            newTextNumber.AddDictionariesToList();
            Dictionary <int, string>         newDictionary = newTextNumber.GetOnesDictionary();
            List <Dictionary <int, string> > newList       = newTextNumber.GetDictionaryList();

            CollectionAssert.AreEqual(newDictionary, newList[0]);
        }
        public void CreateAllDictionaries_CreateAllDictionaries_String()
        {
            TextNumber newTextNumber = new TextNumber();

            newTextNumber.CreateAllDictionaries();
            Dictionary <int, string> onesDictionary     = newTextNumber.GetOnesDictionary();
            Dictionary <int, string> teensDictionary    = newTextNumber.GetTeensDictionary();
            Dictionary <int, string> tensDictionary     = newTextNumber.GetTensDictionary();
            Dictionary <int, string> hundredsDictionary = newTextNumber.GetHundredsDictionary();

            Assert.AreEqual("one", onesDictionary[1]);
            Assert.AreEqual("eleven", teensDictionary[1]);
            Assert.AreEqual("ten", tensDictionary[1]);
            Assert.AreEqual("one hundred", hundredsDictionary[1]);
        }