public void GetUserListToTest_ReturnsListInputted_List() { List <string> tempList = new List <string> { "beer", "beard" }; Anagram newAnagram = new Anagram("bread", tempList); CollectionAssert.AreEqual(tempList, newAnagram.GetWordList()); }
public void SetWordList_ListPropertyIsUpdated_List() { List <string> tempList = new List <string> { "beers", "beard" }; List <string> listToSet = new List <string> { "bob" }; Anagram newAnagram = new Anagram("stringOne", tempList); newAnagram.SetWordList(listToSet); Assert.AreEqual(listToSet, newAnagram.GetWordList()); }