public void GetAll_ReturnsEmptyList_AnagramList() { List <Anagram> newList = new List <Anagram> { }; List <Anagram> result = Anagram.GetAll(); CollectionAssert.AreEqual(newList, result); }
public void GetAll_ReturnsAnagrams_AnagramList() { string word01 = "Bread"; string word02 = "Beard"; Anagram newAnagram1 = new Anagram(word01); Anagram newAnagram2 = new Anagram(word02); List <Anagram> newList = new List <Anagram> { newAnagram1, newAnagram2 }; List <Anagram> result = Anagram.GetAll(); CollectionAssert.AreEqual(newList, result); }