Esempio n. 1
0
 public void Attribute_loader_adds_class_attribute()
 {
     var attributes = new Dictionary<string, object>();
     var loader = new AttributeLoader<ElementTestInstance>(new ElementTestInstance(), attributes);
     var result = loader.Class("some-class");
     Assert.Equal("some-class", attributes["class"]);
     Assert.IsType<ElementTestInstance>(result);
 }