public void Item_returns_empty_string_for_content_that_does_not_exist() { // Arrange var model = new SiteStructure(); // Act var html = model.Item(ContentTypes.HeaderWithMegaNav); // Assert Assert.That(html, Is.Not.Null); Assert.That(html.Length, Is.EqualTo(0)); }
public void Item_provides_access_to_content_by_type() { // Arrange var model = new SiteStructure(); model.ContentItems.Add(ContentTypes.HeaderWithMegaNav.ToString(), "<div id='header'></div>"); // Act var html = model.Item(ContentTypes.HeaderWithMegaNav); // Assert Assert.That(html, Is.Not.Null); }