コード例 #1
0
        public void GetBacklinkCount4()
        {
            int?backlinks;

            backlinks = GoogleBacklinks.GetBacklinkCount(null);
            Assert.AreEqual(null, backlinks);
        }
コード例 #2
0
        public void GetBacklinkCount2()
        {
            int?backlinks;

            backlinks = GoogleBacklinks.GetBacklinkCount(readEmbeddedText("GoogleBacklinks_NoResults.txt"));
            Assert.AreEqual(0, backlinks);
        }
コード例 #3
0
        public void GetBacklinkCount3()
        {
            int?backlinks;

            backlinks = GoogleBacklinks.GetBacklinkCount("asdfasdge");
            Assert.AreEqual(null, backlinks);
        }
コード例 #4
0
        public void GetBacklinkCount()
        {
            int?backlinks;

            backlinks = GoogleBacklinks.GetBacklinkCount(readEmbeddedText("GoogleBacklinks_Sample1.txt"));
            Assert.AreEqual(86, backlinks);
        }