public void AppendWidgetAttributesTest() { var target = new StringField(); var test1 = new ElementAttributesDictionary(); target.AppendWidgetAttributes(new Widgets.TextInput(), test1); Assert.AreEqual(null, test1.Get("maxlength", null)); target.MaxLength = 10; var test2 = new ElementAttributesDictionary(); target.AppendWidgetAttributes(new Widgets.TextArea(), test2); Assert.AreEqual(null, test2.Get("maxlength", null)); var test3 = new ElementAttributesDictionary(); target.AppendWidgetAttributes(new Widgets.TextInput(), test3); Assert.AreEqual("10", test3.Get("maxlength", null)); }