public void OnHandleSeoValues_Empty_SetsMetaRobotsIndexToNull() { // Arrange var attribute = new SeoMetaRobotsIndexAttribute(); var seo = SeoHelperTestFactory.Create(); // Act attribute.OnHandleSeoValues(seo); // Assert Assert.Null(seo.MetaRobotsIndex); }
public void OnHandleSeoValues_NoIndexValue_SetsMetaRobotsIndex(RobotsIndex robotsIndex) { // Arrange var attribute = new SeoMetaRobotsIndexAttribute(robotsIndex); var seo = SeoHelperTestFactory.Create(); // Act attribute.OnHandleSeoValues(seo); // Assert Assert.Equal(robotsIndex, seo.MetaRobotsIndex); }
public void OnHandleSeoValues_NoIndexValue_MetaNoIndexOnly(RobotsIndex robotsIndex) { // Arrange var attribute = new SeoMetaRobotsIndexAttribute(robotsIndex); var seo = SeoHelperTestFactory.Create(); // Act attribute.OnHandleSeoValues(seo); // Assert Assert.Null(seo.LinkCanonical); Assert.Null(seo.MetaDescription); Assert.Null(seo.MetaKeywords); Assert.Null(seo.Title); }