Esempio n. 1
0
        public void SetList_SetTheList_void()
        {
            //arrange
            string        fakeWord = " ";
            List <string> fakeList = new List <string> {
            };
            List <string> newList  = new List <string> {
                "Beard", "Bread", "Rad"
            };
            AnagramChecker newAnagram = new AnagramChecker(fakeWord, fakeList);

            //act
            newAnagram.SetList(newList);
            //assert
            CollectionAssert.AreEqual(newList, newAnagram.GetList());
        }