public void MessageNotMatchingBothFiltersReturnsFalse() { var exporterParameters = new ConversationExporterParameters(null, null, "bob", "pie", null, false); Assert.IsFalse(ConversationModifier.IsInFilters(messages[0].timestamp, messages[0].senderId, messages[0].content, exporterParameters)); Assert.IsFalse(ConversationModifier.IsInFilters(messages[4].timestamp, messages[4].senderId, messages[4].content, exporterParameters)); }
public void MessageNotContainingFilteredKeywordReturnsFalse() { var timestamp = DateTimeOffset.FromUnixTimeSeconds(1448470912); var senderID = "bob"; var content = "Hell yes! Are we buying some pie ?"; var exporterParameters = new ConversationExporterParameters(null, null, null, "null", null, false); Assert.IsFalse(ConversationModifier.IsInFilters(timestamp, senderID, content, exporterParameters)); }
public void FilteringByUserAndKeywordFiltersByUserAndKeyword() { var exporterParameters = new ConversationExporterParameters(null, null, "bob", "Hello", null, false); Assert.IsTrue(ConversationModifier.IsInFilters(messages[0].timestamp, messages[0].senderId, messages[0].content, exporterParameters)); }