public void Should_prepend_class_to_existing_one() { attributes["class"] = "foo"; HtmlAttributesContainerExtensions.PrependCssClass(container.Object, "bar"); Assert.Equal("bar foo", attributes["class"]); }
public void Prepend_should_add_class_if_not_present() { HtmlAttributesContainerExtensions.PrependCssClass(container.Object, "foo"); Assert.Equal("foo", attributes["class"]); }