Exemplo n.º 1
0
 public void Sitemap_NoSitemapValueInRobotsDotText_ReturnEmptyCollection()
 {
     Assert.AreEqual(0, RobotsEmpty.GetSitemapUrls().Count);
 }
Exemplo n.º 2
0
 public void CrawlDelay_NoCrawlDelayValueInRobotsDotText_ReturnZero()
 {
     Assert.AreEqual(0, RobotsEmpty.GetCrawlDelay());
 }
Exemplo n.º 3
0
        public void Disallow_root_all_robots_out_content_Test()
        {
            bool actual = RobotsEmpty.Allowed(BASE_URL + "/");

            Assert.AreEqual(true, actual);
        }
Exemplo n.º 4
0
        public void Disallow_file_all_robots_out_content_Test()
        {
            bool actual = RobotsEmpty.Allowed(BASE_URL + "/folder/file.txt");

            Assert.AreEqual(true, actual);
        }
Exemplo n.º 5
0
        public void Disallow_folder_all_robots_out_content_Test()
        {
            bool actual = RobotsEmpty.Allowed(BASE_URL + "/folder");

            Assert.AreEqual(false, actual);
        }