internal IEnumerable <CategorizedResult> Categorize(string url)
        {
            var categorizer = new TweetCategorizer();

            return(TweetProvider.GetTweets(url).Select(categorizer.Categorize));
        }
 void AssertCategory(string body, string expected)
 {
     var categorizer = new TweetCategorizer();
     var result = categorizer.Categorize("2011/03/21 13:00:55\tbleis\t" + body);
     Assert.That(result.Categories, Is.EqualTo(new[] { expected }));
 }
 public void 普通のTweetがNormalに判定される()
 {
     var categorizer = new TweetCategorizer();
     var result = categorizer.Categorize("2011/03/21 11:19:05\tbleis\tほげほげ");
     Assert.That(result.Categories, Is.EqualTo(new[] { "Normal" }));
 }
 public void 複数の種類を含むTweetの判定結果に含まれるすべての種類が存在する(string body, string[] expectedCategories)
 {
     var categorizer = new TweetCategorizer();
     Assert.That(categorizer.Categorize("2011/12/23 00:00:00\tbleis\t" + body).Categories, Is.EquivalentTo(expectedCategories));
 }
 internal IEnumerable<CategorizedResult> Categorize(string url)
 {
     var categorizer = new TweetCategorizer();
     return TweetProvider.GetTweets(url).Select(categorizer.Categorize);
 }