public void Should_append_class_to_existing_one() { attributes["class"] = "foo"; HtmlAttributesContainerExtensions.AppendCssClass(container.Object, "bar"); Assert.Equal("foo bar", attributes["class"]); }
public void Should_add_a_css_class_to_attributes_collection_if_not_present() { HtmlAttributesContainerExtensions.AppendCssClass(container.Object, "foo"); Assert.Equal("foo", attributes["class"]); }