public void ConversationIsFilteredByKeyword()
        {
            Conversation actualConversation   = new ConversationReader("chat.txt").Conversation;
            Conversation expectedConversation = new ConversationReader("ConversationPie.txt").Conversation;

            var filter = new IDFilter()
            {
                Word = "pie"
            };

            actualConversation = filter.Filter(actualConversation);

            Assert.That(actualConversation.ToString(), Is.EqualTo(expectedConversation.ToString()));;
        }
Ejemplo n.º 2
0
        public void ConversationShouldBeFilteredByID()
        {
            Conversation actualConversation   = new ConversationReader("chat.txt").Conversation;
            Conversation expectedConversation = new ConversationReader("ConversationBob.txt").Conversation;

            var filter = new IDFilter()
            {
                Word = "bob"
            };

            actualConversation = filter.Filter(actualConversation);

            Assert.That(actualConversation.ToString(), Is.EqualTo(expectedConversation.ToString()));
        }