public void description_writes_each_behavior_first_call_and_route_pattern() { var graph = new FubuRegistry(x => { x.Applies.ToAssemblyContainingType <OneController>(); x.Policies.WrapBehaviorChainsWith <BasicBehavior>(); x.Policies.WrapBehaviorChainsWith <WrappingBehavior>(); }).BuildGraph(); var listener = MockRepository.GenerateStub <TraceListener>(); Trace.Listeners.Add(listener); graph.Describe(); graph.Behaviors.Each( b => listener.AssertWasCalled( l => l.WriteLine(b.FirstCall().Description.PadRight(70) + b.Route.Pattern))); }