Example #1
0
        public void place_label_tag()
        {
            var layout = new DefinitionListFieldChrome();
            HtmlTag label = new HtmlTag("span").Text("some text");

            layout.LabelTag = label;
            layout.LabelTag.ShouldBeTheSameAs(label);
        }
Example #2
0
        public void replace_the_label()
        {
            var layout = new DefinitionListFieldChrome();
            HtmlTag label = new HtmlTag("span").Text("some text");
            layout.LabelTag = label;

            HtmlTag display = new TextboxTag().Attr("value", "something");
            layout.LabelTag = display;

            layout.LabelTag.ShouldBeTheSameAs(display);
        }
Example #3
0
        public void write_to_string()
        {
            var layout = new DefinitionListFieldChrome();
            HtmlTag label = new HtmlTag("span").Text("some text");
            layout.LabelTag = label;

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

            string html = layout.Render();

            html.ShouldContain(label.ToString());
            html.ShouldContain(display.ToString());
        }