public void TestDiagnosticMetadataRendering()
        {
            PopulateTabStrip();
            var renderingContext = new WebTabStripRenderingContext(
                _httpContextStub,
                _htmlHelper.Writer,
                _webTabStrip,
                new[]
            {
                new WebTabRendererAdapter(CreateWebTabRenderer(RenderingFeatures.WithDiagnosticMetadata), _tab0, true, true, _style),
            });

            _renderer = new WebTabStripRenderer(new FakeResourceUrlFactory(), GlobalizationService, RenderingFeatures.WithDiagnosticMetadata);
            _renderer.Render(renderingContext);

            var document = _htmlHelper.GetResultDocument();
            var outerDiv = document.GetAssertedChildElement("div", 0);
            var innerDiv = outerDiv.GetAssertedChildElement("div", 0);

            outerDiv.AssertAttributeValueEquals(DiagnosticMetadataAttributes.ControlType, _webTabStrip.ControlType);
            var list    = innerDiv.GetAssertedChildElement("ul", 0);
            var item    = list.GetAssertedChildElement("li", 0);
            var wrapper = item.GetAssertedChildElement("span", 0);
            var tab     = wrapper.GetAssertedChildElement("span", 1);

            tab.AssertAttributeValueEquals(DiagnosticMetadataAttributes.ItemID, _tab0.ItemID);
            tab.AssertAttributeValueEquals(DiagnosticMetadataAttributes.Content, _tab0.Text);
        }
        private void AssertControl(bool withCssClass, bool isEmpty, bool isDesignMode, int tabCount, WebTabStripRenderingContext renderingContext)
        {
            _renderer = new WebTabStripRenderer(new FakeResourceUrlFactory(), GlobalizationService, RenderingFeatures.Default);
            _renderer.Render(renderingContext);

            var     document = _htmlHelper.GetResultDocument();
            XmlNode list     = GetAssertedTabList(document, withCssClass, isEmpty, tabCount, isDesignMode);

            AssertTabs(list, isDesignMode);
        }