public GridHeaderCellBuilderTests() { builder = new GridHeaderCellBuilder(new Dictionary <string, object>(), delegate { }); builderWithCustomCssClass = new GridHeaderCellBuilder(new Dictionary <string, object>() { { "class", customCssClass } }, delegate { }); }
public void Should_append_content_in_template_cell() { var content = new HtmlElement("foo"); Action <IHtmlNode> appendContent = node => content.AppendTo(node); var headerAttributes = new Dictionary <string, object>(); var cell = new GridHeaderCellBuilder(headerAttributes, appendContent, true).CreateCell(); cell.Children.ShouldContain(content); }
public void Should_append_content_in_template_cell() { var content = new HtmlElement("foo"); Action<IHtmlNode> appendContent = node => content.AppendTo(node); var headerAttributes = new Dictionary<string, object>(); var cell = new GridHeaderCellBuilder(headerAttributes, appendContent, true).CreateCell(); cell.Children.ShouldContain(content); }
public void Should_apply_header_html_attributes() { const string key = "foo"; const string value = "bar"; var headerAttributes = new Dictionary <string, object> { { key, value } }; var cell = new GridHeaderCellBuilder(headerAttributes, delegate { }).CreateCell(); cell.Attribute(key).ShouldEqual(value); }
public void Should_apply_header_html_attributes() { const string key = "foo"; const string value = "bar"; var headerAttributes = new Dictionary<string, object> {{key, value}}; var cell = new GridHeaderCellBuilder(headerAttributes, delegate { }).CreateCell(); cell.Attribute(key).ShouldEqual(value); }
public GridHeaderCellBuilderTests() { builder = new GridHeaderCellBuilder(new Dictionary<string, object>(), delegate { }); builderWithCustomCssClass = new GridHeaderCellBuilder(new Dictionary<string, object>() { {"class", customCssClass} }, delegate { }); }