예제 #1
0
        public void Should_return_filtered_words()
        {
            //Arrange
            IWordsDB     sut = new WordsDB(words);
            const string from = "b", to = "c";
            //Act
            var actual = sut.Get(from, to);

            //Assert
            Assert.AreEqual(2, actual.Count());
        }
예제 #2
0
        public void Should_return_all_words()
        {
            //Arrange
            IWordsDB sut = new WordsDB(words);

            //Act
            var actual = sut.Get();

            //Assert
            Assert.AreEqual(4, actual.Count());
        }