public void GetRoutesForVerb_Called_ExpectOnlyRoutesMatchingVerbAreReturned( Route[] mixedVerbRoutes, string verb, string[] routes, MethodInfo method) { var specificVerbRoutes = routes.Select(x => new Route(verb, x, method)).ToArray(); var table = new RouteTable(mixedVerbRoutes.Concat(specificVerbRoutes).Shuffle()); table.GetRoutesForVerb(verb).Should().BeEquivalentTo(specificVerbRoutes); }