public void show_nothing_for_the_route_if_there_is_nothing()
        {
            var chain = new BehaviorChain();

            var visualization = new ChainVisualization{
                Chain = chain
            };

            visualization.RouteTag.Render().ShouldBeFalse();
        }
        public void Title_if_there_is_a_route()
        {
            var chain = new BehaviorChain{
                Route = new RouteDefinition("some/pattern")
            };
            var visualization = new ChainVisualization()
            {
                Report = new RouteReport(chain, null, null),
                Chain = chain
            };

            visualization.Title.ShouldEqual("some/pattern");
        }
        public void show_route_description_in_collapsed_body_for_a_route()
        {
            var chain = new BehaviorChain
            {
                Route = new RouteDefinition("something")
            };

            var visualization = new ChainVisualization
            {
                Chain = chain
            };

            var tag = visualization.RouteTag.As<CollapsibleTag>();

            tag.Render().ShouldBeTrue();
            tag.ToString().ShouldContain(new DescriptionBodyTag(Description.For(chain.Route)).ToString());

        }