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()));; }
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())); }