예제 #1
0
        public void GetLinkCount4()
        {
            int?linkCount;

            linkCount = Delicious.GetLinkCount(readEmbeddedText("Delicious_1Link.txt"));

            Assert.AreEqual(1, linkCount);
        }
예제 #2
0
        public void GetLinkCount3()
        {
            int?linkCount;

            linkCount = Delicious.GetLinkCount("this is bad text");

            Assert.AreEqual(null, linkCount);
        }
예제 #3
0
        public void GetLinkCount2()
        {
            int?linkCount;

            linkCount = Delicious.GetLinkCount(readEmbeddedText("Delicious_NoLinks.txt"));

            Assert.AreEqual(0, linkCount);
        }
예제 #4
0
        public void GetLinkCount()
        {
            int?linkCount;

            linkCount = Delicious.GetLinkCount(readEmbeddedText("Delicious_Sample1.txt"));

            Assert.AreEqual(369, linkCount);
        }
예제 #5
0
 public void FormatUrl4()
 {
     Assert.AreEqual("http://www.obishawn.com/", Delicious.FormatUrl("http://www.obishawn.com/"));
 }
예제 #6
0
 public void FormatUrl3()
 {
     Assert.AreEqual("http://test.co.uk/", Delicious.FormatUrl("http://test.co.uk"));
 }
예제 #7
0
 public void FormatUrl2()
 {
     Assert.AreEqual("http://test.com/", Delicious.FormatUrl("http://test.com"));
 }
예제 #8
0
 public void FormatUrl()
 {
     Assert.AreEqual("http://pajhome.org.uk/crypt/md5/", Delicious.FormatUrl("http://pajhome.org.uk/crypt/md5/"));
 }
예제 #9
0
 public void Setup()
 {
     d = new Delicious();
 }