public void Attribute_loader_adds_disabled_attribute() { var attributes = new Dictionary<string, object>(); var loader = new AttributeLoader<ElementTestInstance>(new ElementTestInstance(), attributes); var result = loader.Disabled(true); Assert.Equal("", attributes["disabled"]); Assert.IsType<ElementTestInstance>(result); }