Пример #1
0
 public void Should_throw_if_class_contains_completely_the_argument()
 {
     attributes["class"] = "foo";
     Assert.Throws <NotSupportedException>(() => HtmlAttributesContainerExtensions.ThrowIfClassIsPresent(container.Object, "foo", "bar"));
 }
Пример #2
0
 public void Should_not_throw_if_class_contains_partially_the_argument()
 {
     attributes["class"] = "foos";
     Assert.DoesNotThrow(() => HtmlAttributesContainerExtensions.ThrowIfClassIsPresent(container.Object, "foo", "bar"));
 }
Пример #3
0
 public void Should_not_throw_if_class_is_null()
 {
     attributes["class"] = null;
     Assert.DoesNotThrow(() => HtmlAttributesContainerExtensions.ThrowIfClassIsPresent(container.Object, "foo", "bar"));
 }