コード例 #1
0
        public void ReturnsWordsWithSpecifiedLength()
        {
            string word1 = "word1";
            string word2 = "word2";
            string word3 = "word";

            repository.Add(word1);
            repository.Add(word2);
            repository.Add(word3);

            List <string> words = new List <string>(repository.GetWordsWithLength(5));

            Assert.AreEqual(2, words.Count);
            Assert.IsTrue(words.Contains(word1));
            Assert.IsTrue(words.Contains(word2));
        }