Beispiel #1
0
        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);
        }