public void GetLinkCount4() { int?linkCount; linkCount = Delicious.GetLinkCount(readEmbeddedText("Delicious_1Link.txt")); Assert.AreEqual(1, linkCount); }
public void GetLinkCount3() { int?linkCount; linkCount = Delicious.GetLinkCount("this is bad text"); Assert.AreEqual(null, linkCount); }
public void GetLinkCount2() { int?linkCount; linkCount = Delicious.GetLinkCount(readEmbeddedText("Delicious_NoLinks.txt")); Assert.AreEqual(0, linkCount); }
public void GetLinkCount() { int?linkCount; linkCount = Delicious.GetLinkCount(readEmbeddedText("Delicious_Sample1.txt")); Assert.AreEqual(369, linkCount); }
public void FormatUrl4() { Assert.AreEqual("http://www.obishawn.com/", Delicious.FormatUrl("http://www.obishawn.com/")); }
public void FormatUrl3() { Assert.AreEqual("http://test.co.uk/", Delicious.FormatUrl("http://test.co.uk")); }
public void FormatUrl2() { Assert.AreEqual("http://test.com/", Delicious.FormatUrl("http://test.com")); }
public void FormatUrl() { Assert.AreEqual("http://pajhome.org.uk/crypt/md5/", Delicious.FormatUrl("http://pajhome.org.uk/crypt/md5/")); }
public void Setup() { d = new Delicious(); }