public void GetWordList_ReturnsGrams_GramList() { Gram newGram = new Gram("wordOne"); List <string> newList = new List <string> { }; //Act List <string> result = newGram.GetWordList(); //Assert CollectionAssert.AreEqual(newList, result); }
public void AddWord_AddWordtoWordList_ItemList() { //Arrange string word = "dough"; Gram newGram = new Gram("hug"); List <string> newList = new List <string> { word }; //Act newGram.AddWord(word); List <string> result = newGram.GetWordList(); //Assert CollectionAssert.AreEqual(newList, result); }