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

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


        }