public void Render_Begin_SetsOptions() { actual = string.Empty; string expected = "<div id=\"dialog\" data-control-type=\"dialog\" data-control-options=\"{"modal":true,"autoOpen":false}\"><p></p></div>"; DialogBuilder target = new DialogBuilder("dialog", null); target.Options(option => { option.Modal = true; option.AutoOpen = false; }); actual = Utility.ControlHtmlBuilder <Dialog, DialogBuilder>(target); Assert.AreEqual(expected, actual); }