private void RenderAndAssertTable(out XmlNode tbody)
        {
            IBocListTableBlockRenderer renderer = new BocListTableBlockQuirksModeRenderer(
                _bocListQuirksModeCssClassDefinition, new StubRowQuirksModeRenderer());

            renderer.Render(new BocListRenderingContext(HttpContext, Html.Writer, List, _stubColumnRenderers));

            var document = Html.GetResultDocument();

            var div = Html.GetAssertedChildElement(document, "div", 0);

            var table = Html.GetAssertedChildElement(div, "table", 0);

            var colgroup = Html.GetAssertedChildElement(table, "colgroup", 0);

            Html.GetAssertedChildElement(colgroup, "col", 0);
            Html.GetAssertedChildElement(colgroup, "col", 1);
            Html.GetAssertedChildElement(colgroup, "col", 2);

            var thead = Html.GetAssertedChildElement(table, "thead", 1);

            var trTitle = Html.GetAssertedChildElement(thead, "tr", 0);

            Html.AssertAttribute(trTitle, "class", "titleStub");

            tbody = Html.GetAssertedChildElement(table, "tbody", 2);
        }
        public void RenderDummyTable()
        {
            Initialize(false);
            CommonInitialize();

            IBocListTableBlockRenderer renderer = new BocListTableBlockQuirksModeRenderer(
                _bocListQuirksModeCssClassDefinition, new StubRowQuirksModeRenderer());

            renderer.Render(new BocListRenderingContext(HttpContext, Html.Writer, List, new BocColumnRenderer[0]));

            var document = Html.GetResultDocument();

            var table = Html.GetAssertedChildElement(document, "table", 0);
            var tr    = Html.GetAssertedChildElement(table, "tr", 0);
            var td    = Html.GetAssertedChildElement(tr, "td", 0);

            Html.AssertTextNode(td, HtmlHelper.WhiteSpace, 0);
        }