public void Serialize_SitemapIndexNode_RequiredTags() { SitemapIndexNode sitemapIndexNode = new SitemapIndexNode("abc"); string result = _serializer.Serialize(sitemapIndexNode); result.Should().BeXmlEquivalent("Samples/sitemap-index-node-required.xml"); }
public void Serialize_SitemapIndexNode_RequiredTags() { SitemapIndexNode sitemapIndexNode = new SitemapIndexNode("abc"); string result = Serialize(sitemapIndexNode); result.Should().BeXmlEquivalent("Samples/sitemap-index-node-required.xml"); }
public void ValidateUrls_SitemapIndexNode() { SitemapIndexNode sitemapIndexNode = new SitemapIndexNode("/product-sitemap"); _urlValidator.ValidateUrls(null, sitemapIndexNode); sitemapIndexNode.Url.Should().Be("http://example.org/product-sitemap"); }
public void Serialize_SitemapIndexNode_AllTags() { SitemapIndexNode sitemapIndexNode = new SitemapIndexNode { Url = "abc", LastModificationDate = new DateTime(2013, 12, 11, 16, 05, 00, DateTimeKind.Utc) }; string result = _serializer.Serialize(sitemapIndexNode); result.Should().BeXmlEquivalent("Samples/sitemap-index-node-all.xml"); }
public void Serialize_SitemapIndexNode_AllTags() { SitemapIndexNode sitemapIndexNode = new SitemapIndexNode { Url = "abc", LastModificationDate = new DateTime(2013, 12, 11, 16, 05, 00, DateTimeKind.Utc) }; string result = Serialize(sitemapIndexNode); result.Should().BeXmlEquivalent("Samples/sitemap-index-node-all.xml"); }