void canInitGuessWordListWithOrDefaultIfGivenEmptyList() { SuspendPerson sp = new SuspendPerson(); string[] defaultWords = { "porcupine" }; List<string> actualWordList = sp.initGuessWordList(new string[] { "" }); List<string> expectedWordList = new List<string>(defaultWords); Assert.Equal(expectedWordList, actualWordList); }
void canInitGuessWordListWithGivenList() { SuspendPerson sp = new SuspendPerson(); string[] words = { "abc", "def" }; string[] defaultWords = { "porcupine" }; List<string> actualWordList = sp.initGuessWordList(words); List<string> expectedWordList = new List<string>(words); Assert.Equal(expectedWordList, actualWordList); }