Ejemplo n.º 1
0
        public void write_with_no_outputs()
        {
            var chain = new BehaviorChain();
            var tag = new HtmlTag("td");

            var column = new OutputColumn();
            column.WriteBody(chain, null, tag);

            tag.Text().ShouldEqual(" -");
        }
Ejemplo n.º 2
0
        public void write_with_no_outputs()
        {
            var chain = new BehaviorChain();
            var tag   = new HtmlTag("td");

            var column = new OutputColumn();

            column.WriteBody(chain, null, tag);

            tag.Text().ShouldEqual(" -");
        }
Ejemplo n.º 3
0
        public void write_with_a_single_output()
        {
            var chain = new BehaviorChain();
            var node = new RenderJsonNode(typeof (RouteParameter));
            chain.AddToEnd(node);

            var tag = new HtmlTag("td");

            var column = new OutputColumn();
            column.WriteBody(chain, null, tag);

            tag.Text().ShouldEqual(node.Description);
        }
Ejemplo n.º 4
0
        public void write_with_a_single_output()
        {
            var chain = new BehaviorChain();
            var node  = new OutputNode(typeof(RouteParameter));

            chain.AddToEnd(node);

            var tag = new HtmlTag("td");

            var column = new OutputColumn();

            column.WriteBody(chain, null, tag);

            tag.Text().ShouldEqual(node.Description);
        }
Ejemplo n.º 5
0
        public void write_with_multiple_outputs()
        {
            var chain = new BehaviorChain();
            var json = new RenderJsonNode(typeof (RouteParameter));
            chain.AddToEnd(json);

            var text = new RenderTextNode<RouteParameter>();
            chain.AddToEnd(text);

            var tag = new HtmlTag("td");

            var column = new OutputColumn();
            column.WriteBody(chain, null, tag);

            tag.Text().ShouldEqual(json.Description + ", " + text.Description);
        }
Ejemplo n.º 6
0
        public void write_with_multiple_outputs()
        {
            var chain = new BehaviorChain();
            var json  = new OutputNode(typeof(RouteParameter));

            chain.AddToEnd(json);

            var text = new RenderTextNode <RouteParameter>();

            chain.AddToEnd(text);

            var tag = new HtmlTag("td");

            var column = new OutputColumn();

            column.WriteBody(chain, null, tag);

            tag.Text().ShouldEqual(json.Description + ", " + text.Description);
        }