1 write to RawText
Microsoft.AspNetCore.Routing (1)
200 references to RawText
IntegrationTestsWebsite (2)
Microsoft.AspNetCore.Components.Endpoints (2)
Microsoft.AspNetCore.Components.Endpoints.Tests (12)
HotReloadServiceTests.cs (9)
52Assert.Equal("/server", endpoint.RoutePattern.RawText);
71(ep) => Assert.Equal("/app/test", ((RouteEndpoint)ep).RoutePattern.RawText),
72(ep) => Assert.Equal("/server", ((RouteEndpoint)ep).RoutePattern.RawText));
87Assert.Equal("/server", endpoint.RoutePattern.RawText);
109Assert.Equal("/server", endpoint.RoutePattern.RawText);
119Assert.Equal("/server", updatedEndpoint.RoutePattern.RawText);
135Assert.Equal("/server", endpoint.RoutePattern.RawText);
137Assert.Equal("/server", compositeEndpoint.RoutePattern.RawText);
184Assert.Equal("/server", endpoint.RoutePattern.RawText);
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.Diagnostics.Middleware (3)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (7)
Microsoft.AspNetCore.Http.Extensions.Tests (1)
Microsoft.AspNetCore.Http.Microbenchmarks (1)
Microsoft.AspNetCore.Identity (1)
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
Microsoft.AspNetCore.Mvc.Core (2)
Microsoft.AspNetCore.Mvc.Core.Test (51)
Routing\ControllerActionEndpointDataSourceTest.cs (39)
91endpoints.OfType<RouteEndpoint>().Where(e => !SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
94Assert.Equal("/1/{controller}/{action}/{id?}", e.RoutePattern.RawText);
99Assert.Equal("/2/{controller}/{action}/{id?}", e.RoutePattern.RawText);
104endpoints.OfType<RouteEndpoint>().Where(e => SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
107Assert.Equal("/1/{controller}/{action}/{id?}", e.RoutePattern.RawText);
114Assert.Equal("/2/{controller}/{action}/{id?}", e.RoutePattern.RawText);
121Assert.Equal("/test", e.RoutePattern.RawText);
173endpoints.OfType<RouteEndpoint>().Where(e => !SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
176Assert.Equal("/1/{controller}/{action}/{id?}", e.RoutePattern.RawText);
182Assert.Equal("/2/{controller}/{action}/{id?}", e.RoutePattern.RawText);
188endpoints.OfType<RouteEndpoint>().Where(e => SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
191Assert.Equal("/1/{controller}/{action}/{id?}", e.RoutePattern.RawText);
197Assert.Equal("/2/{controller}/{action}/{id?}", e.RoutePattern.RawText);
203Assert.Equal("/test", e.RoutePattern.RawText);
260endpoints.OfType<RouteEndpoint>().Where(e => !SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
263Assert.Equal("/1/{controller}/{action}/{id?}", e.RoutePattern.RawText);
268Assert.Equal("/2/{controller}/{action}/{id?}", e.RoutePattern.RawText);
273endpoints.OfType<RouteEndpoint>().Where(e => SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
276Assert.Equal("/1/{controller}/{action}/{id?}", e.RoutePattern.RawText);
283Assert.Equal("/2/{controller}/{action}/{id?}", e.RoutePattern.RawText);
290Assert.Equal("/test", e.RoutePattern.RawText);
342endpoints.OfType<RouteEndpoint>().Where(e => !SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
345Assert.Equal("/1/{controller}/{action}/{id?}", e.RoutePattern.RawText);
351Assert.Equal("/2/{controller}/{action}/{id?}", e.RoutePattern.RawText);
357endpoints.OfType<RouteEndpoint>().Where(e => SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
360Assert.Equal("/1/{controller}/{action}/{id?}", e.RoutePattern.RawText);
366Assert.Equal("/2/{controller}/{action}/{id?}", e.RoutePattern.RawText);
372Assert.Equal("/test", e.RoutePattern.RawText);
436endpoints.OfType<RouteEndpoint>().Where(e => !SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
439Assert.Equal("/group1/1/{controller}/{action}/{id?}", e.RoutePattern.RawText);
446Assert.Equal("/group1/2/{controller}/{action}/{id?}", e.RoutePattern.RawText);
453endpoints.OfType<RouteEndpoint>().Where(e => SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
456Assert.Equal("/group1/1/{controller}/{action}/{id?}", e.RoutePattern.RawText);
464Assert.Equal("/group1/2/{controller}/{action}/{id?}", e.RoutePattern.RawText);
471Assert.Equal("/group1/test", e.RoutePattern.RawText);
526endpoints.OfType<RouteEndpoint>().Where(e => SupportsLinkGeneration(e)).OrderBy(e => e.RoutePattern.RawText),
529Assert.Equal("/1/{controller}/{action}/{id?}", e.RoutePattern.RawText);
534Assert.Equal("/2/{controller}/{action}/{id?}", e.RoutePattern.RawText);
539Assert.Equal("/test", e.RoutePattern.RawText);
Microsoft.AspNetCore.Mvc.RazorPages.Test (13)
Microsoft.AspNetCore.OpenApi.Tests (2)
Microsoft.AspNetCore.Routing (18)
DefaultLinkGenerator.cs (4)
355=> TemplateSucceeded(logger, endpoint.RoutePattern.RawText, endpoint.DisplayName, path.Value, query.Value);
367TemplateFailedRequiredValues(logger, endpoint.RoutePattern.RawText, endpoint.DisplayName, FormatRouteValues(ambientValues), FormatRouteValues(values), FormatRouteValues(endpoint.RoutePattern.Defaults));
384TemplateFailedConstraint(logger, endpoint.RoutePattern.RawText, endpoint.DisplayName, constraint, parameterName, FormatRouteValues(values));
400TemplateFailedExpansion(logger, endpoint.RoutePattern.RawText, endpoint.DisplayName, FormatRouteValues(values));
Patterns\RoutePatternFactory.cs (6)
75return PatternCore(original.RawText, Wrap(defaults), CreateRoutePatternPolicyReferences(Wrap(parameterPolicies)), requiredValues: null, original.PathSegments);
100return PatternCore(original.RawText, defaults, CreateRoutePatternPolicyReferences(parameterPolicies), requiredValues: null, original.PathSegments);
129return PatternCore(original.RawText, Wrap(defaults), CreateRoutePatternPolicyReferences(Wrap(parameterPolicies)), Wrap(requiredValues), original.PathSegments);
157return PatternCore(original.RawText, defaults, CreateRoutePatternPolicyReferences(parameterPolicies), requiredValues, original.PathSegments);
1089var rawText = $"{left.RawText?.TrimEnd('/')}/{right.RawText?.TrimStart('/')}";
Microsoft.AspNetCore.Routing.Microbenchmarks (7)
Microsoft.AspNetCore.Routing.Tests (70)
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (22)
109Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText);
129Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText);
155Assert.Equal("/{id}", routeEndpointBuilder.RoutePattern.RawText);
193Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText);
277Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText);
297Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText);
317Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText);
341Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText);
361Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText);
381Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText);
405Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText);
425Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText);
445Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText);
534Assert.Equal($"/{{ID}}", routeEndpointBuilder.RoutePattern.RawText);
575Assert.Equal($"/{{ID}}", routeEndpointBuilder.RoutePattern.RawText);
675Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText);
713Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText);
733Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText);
748Assert.Equal("/", routeEndpointBuilder.RoutePattern.RawText);
764Assert.Equal("{*path:nonfile}", routeEndpointBuilder.RoutePattern.RawText);
893Assert.Equal(expectedPattern, routeEndpoint.RoutePattern.RawText);
948.ToDictionary(e => ((RouteEndpoint)e).RoutePattern.RawText!);
Patterns\RoutePatternFactoryTest.cs (16)
24original.RawText,
53original.RawText,
77original.RawText,
102original.RawText,
125original.RawText,
148original.RawText,
193original.RawText,
229original.RawText,
260original.RawText,
308original.RawText,
327original.RawText,
363original.RawText,
391original.RawText,
746Assert.Equal("/a/b/", combined.RawText);
772Assert.Equal("/a/{x=foo}/b", combined.RawText);
789Assert.Equal("/a/b", combined.RawText);
Microsoft.AspNetCore.StaticAssets (1)
Microsoft.AspNetCore.Tests (1)
RoutingSandbox (2)
RoutingWebSite (2)