public void write_to_string()
        {
            var layout = new DefinitionListLabelAndField();
            var label = new HtmlTag("span").Text("some text");
            layout.LabelTag = label;

            var display = new TextboxTag().Attr("value", "something");
            layout.BodyTag = display;

            var html = layout.ToString();

            html.ShouldContain(label.ToString());
            html.ShouldContain(display.ToString());
        }
        public void wrap_body()
        {
            var layout = new DefinitionListLabelAndField();
            var display = new TextboxTag().Attr("value", "something");
            layout.BodyTag = display;

            var wrapper = new HtmlTag("strong");
            layout.WrapBody(wrapper);

            layout.BodyTag.ShouldBeTheSameAs(display);
            wrapper.Children.ShouldHaveTheSameElementsAs(display);

            layout.ToString().ShouldContain(wrapper.ToString());
        }