Exemplo n.º 1
0
        public void AddVerifiedWordsToList_ReturnVerifiedList_List()
        {
            //Arrange
            string        mainWord = "Bread";
            List <string> testList = new List <string> {
                "Dog"
            };
            List <string> listToTestAgainstResult = new List <string> {
                "Bread"
            };

            Console.WriteLine(listToTestAgainstResult[0]);
            Word newWord = new Word(mainWord, testList);

            //Act
            newWord.AddVerifiedWordsToList(mainWord);
            List <string> result = newWord.GetVerifiedAnagrams();

            //Assert
            CollectionAssert.AreEqual(listToTestAgainstResult, result);
        }