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