public void SitemapUrl_KeywordCase_ReturnsUrl() { Robots.Robots robots = new Robots.Robots(); robots.LoadContent(@"siteMAp: http://a.com/sitemap.xml", BASE_URL); Assert.AreEqual("http://a.com/sitemap.xml", robots.GetSitemapUrls()[0]); }
public void SitemapUrl_NoUrl_Returns1EntryThatIsEmtpty() { Robots.Robots robots = new Robots.Robots(); robots.LoadContent(@"Sitemap: ", BASE_URL); Assert.AreEqual("", robots.GetSitemapUrls()[0]); }
public void SitemapUrl_MultipleSpaceBetween_ReturnsUrl() { Robots.Robots robots = new Robots.Robots(); robots.LoadContent(@"Sitemap: http://a.com/sitemap.xml", BASE_URL); Assert.AreEqual("http://a.com/sitemap.xml", robots.GetSitemapUrls()[0]); }