public void BindingGroup_EnumProperty() { var writer = new StringWriter(); var html = new HtmlWriter(writer, CreateContext(new object())); html.AddKnockoutDataBind("tt", new KnockoutBindingGroup() { { "test", new TextBox() { Type = TextBoxType.Date }, TextBox.TypeProperty } }); html.RenderSelfClosingTag("span"); Assert.AreEqual("<spandata-bind=\"tt:{'test':"Date"}\"/>", writer.ToString().Replace(" ", "")); }