public void write_route_column_for_internal_diagnostics_route() { var chain = new BehaviorChain(); chain.Route = new RouteDefinition(DiagnosticUrlPolicy.DIAGNOSTICS_URL_ROOT + "/chains"); var row = new TableRowTag(); var tag = row.Cell(); new RouteColumn().WriteBody(chain, row, tag); row.HasClass(BehaviorGraphWriter.FUBU_INTERNAL_CLASS).ShouldBeTrue(); }
public void write_route_column_when_the_route_exists() { var chain = new BehaviorChain(); chain.Route = new RouteDefinition("some/thing/else"); var row = new TableRowTag(); var tag = row.Cell(); new RouteColumn().WriteBody(chain, null, tag); tag.FirstChild().Text().ShouldEqual(chain.Route.Pattern); row.HasClass(BehaviorGraphWriter.FUBU_INTERNAL_CLASS).ShouldBeFalse(); }