Esempio n. 1
0
        public void GetWordsStartingLikeShouldReturnOnlyTheRightWords()
        {
            var words = new List <string>()
            {
                "ho", "house", "car"
            };

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

            Assert.Equal(new List <string>()
            {
                "ho", "house"
            }, repo.GetWordsStartingLike("ho"));
        }