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

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

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

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

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

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

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

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

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