Esempio n. 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));
        }
Esempio n. 2
0
 public void SetUp()
 {
     autolink = new Autolink();
     autolink.NoFollow = false;
 }
Esempio n. 3
0
 public void SetUp()
 {
     autolink          = new Autolink();
     autolink.NoFollow = false;
 }
Esempio n. 4
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));
 }