public void BindAttributeOptions() { var data = new MyData(); _builder.BindAttribute(new BindAttributeOptions <MyData> { Attribute = "data-counter", BindObject = data, Property = x => x.Counter.ToString() }); data.Counter = 2; Assert.Equal("2", _root.GetAttribute("data-counter")); }