// Helper methods
        public void TestIgnore(string text)
        {
            var def = CreateSearchDefinition("/TEST", "leggetter", text, "Text", @"(\s|\W|^)RT(\s|\W|$)", false);

            var update = new Dictionary<string, string>();
            update["Text"] = text;
            IStatusMessage msg = new StatusMessage(text);
            string[] topics = Publisher.DetermineTopicFromTwitterMessage(update, msg, new SearchDefinition[] { def });

            Assert.AreEqual(0, topics.Length, "RT should have been ignored");
        }
        public void SearchDefinition_with_trackfor_matches_screenname_and_returns_the_topic()
        {
            var text = "RT:@leggetter No way!";
            var def = CreateSearchDefinition("/TEST", "leggetter", text);

            var update = new Dictionary<string, string>();
            update["Text"] = text;
            IStatusMessage msg = new StatusMessage(text);
            string[] topics = Publisher.DetermineTopicFromTwitterMessage(update, msg, new SearchDefinition[] { def });

            Assert.AreEqual(1, topics.Length);
        }