コード例 #1
0
        public void GetAllWordsShouldReturnAllTheWords()
        {
            var words = new List <string>()
            {
                "house", "car"
            };

            wordsReaderMock
            .Setup(reader => reader.GetAllWords())
            .Returns(words);
            repo = new WordsRepository(wordsReaderMock.Object);

            Assert.Equal(words, repo.GetAllWords());
        }