コード例 #1
0
        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();
        }
コード例 #2
0
        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");
        }
コード例 #3
0
        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());

        }