Ejemplo n.º 1
0
        public void Should_prepend_class_to_existing_one()
        {
            attributes["class"] = "foo";

            HtmlAttributesContainerExtensions.PrependCssClass(container.Object, "bar");

            Assert.Equal("bar foo", attributes["class"]);
        }
Ejemplo n.º 2
0
        public void Prepend_should_add_class_if_not_present()
        {
            HtmlAttributesContainerExtensions.PrependCssClass(container.Object, "foo");

            Assert.Equal("foo", attributes["class"]);
        }