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