public void Attribute_loader_adds_id_attribute() { var attributes = new Dictionary<string, object>(); var loader = new AttributeLoader<ElementTestInstance>(new ElementTestInstance(), attributes); var result = loader.Id("some-id"); Assert.Equal("some-id", attributes["id"]); Assert.IsType<ElementTestInstance>(result); }