예제 #1
0
 public void CrawlDelay_UserAgentCrawlDelayNotSpecified_ReturnsZero()
 {
     Assert.AreEqual(0, RobotsContent.GetCrawlDelay("userAgentCrawlDelayNotSpecified"));
 }
예제 #2
0
 public void CrawlDelay_UserAgentCrawlDelayEmpty_ReturnsZero()
 {
     Assert.AreEqual(0, RobotsContent.GetCrawlDelay("userAgentCrawlDelayEmpty"));
 }
예제 #3
0
        public void Explicit_relative_disallowed_file_Test()
        {
            bool actual = RobotsContent.Allowed("/disallowedfile.txt");

            Assert.AreEqual(false, actual);
        }
예제 #4
0
        public void Explicit_allowed_folder_Test()
        {
            bool actual = RobotsContent.Allowed(BASE_URL + "/allowedfolder2");

            Assert.AreEqual(true, actual);
        }
예제 #5
0
        public void Explicit_disallowed_complete_folder_Test_different_folder()
        {
            bool actual = RobotsContent.Allowed(BASE_URL + "/disallowedcompletefolderwithmoretext");

            Assert.AreEqual(true, actual);
        }
예제 #6
0
        public void Explicit_disallowed_complete_folder_Test()
        {
            bool actual = RobotsContent.Allowed(BASE_URL + "/disallowedcompletefolder");

            Assert.AreEqual(false, actual);
        }
예제 #7
0
        public void Implicit_allowed_file_Test()
        {
            bool actual = RobotsContent.Allowed(BASE_URL + "/allowedfile.xml");

            Assert.AreEqual(true, actual);
        }