public void Should_return_first_matched_route_when_conflicting_routs_are_available() { // Given var request = new Request("GET", "/fake/should/have/conflicting/route/defined", new Dictionary <string, IEnumerable <string> >(), new MemoryStream()); var modules = new NancyModule[] { new FakeNancyModuleWithBasePath(), new FakeNancyModuleWithoutBasePath() }; var descriptions = modules.SelectMany(x => x.GetRouteDescription(request)); var route = this.resolver.GetRoute(request, descriptions); var response = route.Invoke(); // When var output = GetStringContentsFromResponse(response); // Then output.ShouldEqual("FakeNancyModuleWithBasePath"); }