20 references to RouteInfo
Microsoft.AspNetCore.Mvc.FunctionalTests (20)
ApiExplorerTest.cs (20)
186
Assert.False(parameter.
RouteInfo
.IsOptional);
188
Assert.Empty(parameter.
RouteInfo
.ConstraintTypes);
209
Assert.False(parameter.
RouteInfo
.IsOptional);
211
Assert.Equal("IntRouteConstraint", Assert.Single(parameter.
RouteInfo
.ConstraintTypes));
232
Assert.False(parameter.
RouteInfo
.IsOptional);
256
Assert.False(parameter.
RouteInfo
.IsOptional);
258
Assert.Equal("IntRouteConstraint", Assert.Single(parameter.
RouteInfo
.ConstraintTypes));
282
Assert.False(month.
RouteInfo
.IsOptional);
284
Assert.Equal("RangeRouteConstraint", Assert.Single(month.
RouteInfo
.ConstraintTypes));
287
Assert.False(day.
RouteInfo
.IsOptional);
289
Assert.Equal("IntRouteConstraint", Assert.Single(day.
RouteInfo
.ConstraintTypes));
292
Assert.False(year.
RouteInfo
.IsOptional);
294
Assert.Equal("IntRouteConstraint", Assert.Single(year.
RouteInfo
.ConstraintTypes));
318
Assert.False(month.
RouteInfo
.IsOptional);
320
Assert.Equal("RangeRouteConstraint", Assert.Single(month.
RouteInfo
.ConstraintTypes));
323
Assert.True(day.
RouteInfo
.IsOptional);
325
Assert.Equal("IntRouteConstraint", Assert.Single(day.
RouteInfo
.ConstraintTypes));
328
Assert.True(year.
RouteInfo
.IsOptional);
330
Assert.Equal("IntRouteConstraint", Assert.Single(year.
RouteInfo
.ConstraintTypes));
377
Assert.True(id.
RouteInfo
.IsOptional);