Exemple #1
0
        public void NoFollowByDefaultTest()
        {
            autolink = new Autolink();
            String tweet    = "This has a #hashtag";
            String expected = "This has a <a href=\"https://twitter.com/#!/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\" rel=\"nofollow\">#hashtag</a>";

            AssertAutolink(expected, autolink.AutoLinkHashtags(tweet));
        }
 public void SetUp()
 {
     autolink = new Autolink();
     autolink.NoFollow = false;
 }
Exemple #3
0
 public void SetUp()
 {
     autolink          = new Autolink();
     autolink.NoFollow = false;
 }
 public void NoFollowByDefaultTest()
 {
     autolink = new Autolink();
     String tweet = "This has a #hashtag";
     String expected = "This has a <a href=\"https://twitter.com/#!/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\" rel=\"nofollow\">#hashtag</a>";
     AssertAutolink(expected, autolink.AutoLinkHashtags(tweet));
 }