public void MakeTextList_CreateListOfTextFromNumber_List() { TextNumber newTextNumber = new TextNumber(); newTextNumber.MakeTextList("7125"); List <string> result = newTextNumber.GetTextList(); List <string> newList = new List <string>() { "five", "twenty", "one hundred", "seven" }; CollectionAssert.AreEqual(newList, result); }
public void AddTextToList_AddNumberTextToList_List() { TextNumber newTextNumber = new TextNumber(); newTextNumber.SetNumber("15"); newTextNumber.AddTextToList(); List <string> result = newTextNumber.GetTextList(); List <string> newList = new List <string>() { "five" }; CollectionAssert.AreEqual(newList, result); }