diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 214ba616e382..8470ef870562 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -9,290 +9,290 @@ --> - + https://github.com/dotnet/efcore - 32fe1fd7afa3fa6c9af14c4f0da51068202491a1 + d9d15d9d5eee75b4990aa2092d3b5826559dfd3c - + https://github.com/dotnet/efcore - 32fe1fd7afa3fa6c9af14c4f0da51068202491a1 + d9d15d9d5eee75b4990aa2092d3b5826559dfd3c - + https://github.com/dotnet/efcore - 32fe1fd7afa3fa6c9af14c4f0da51068202491a1 + d9d15d9d5eee75b4990aa2092d3b5826559dfd3c - + https://github.com/dotnet/efcore - 32fe1fd7afa3fa6c9af14c4f0da51068202491a1 + d9d15d9d5eee75b4990aa2092d3b5826559dfd3c - + https://github.com/dotnet/efcore - 32fe1fd7afa3fa6c9af14c4f0da51068202491a1 + d9d15d9d5eee75b4990aa2092d3b5826559dfd3c - + https://github.com/dotnet/efcore - 32fe1fd7afa3fa6c9af14c4f0da51068202491a1 + d9d15d9d5eee75b4990aa2092d3b5826559dfd3c - + https://github.com/dotnet/efcore - 32fe1fd7afa3fa6c9af14c4f0da51068202491a1 + d9d15d9d5eee75b4990aa2092d3b5826559dfd3c - + https://github.com/dotnet/efcore - 32fe1fd7afa3fa6c9af14c4f0da51068202491a1 + d9d15d9d5eee75b4990aa2092d3b5826559dfd3c - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 https://github.com/dotnet/source-build-externals dcd0eca339b5c64b5816c111f583c82062ce4c74 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 https://github.com/dotnet/xdt @@ -302,9 +302,9 @@ - + https://github.com/dotnet/runtime - faa1d0993afad9d751b2dca6bcfe356369ec6c08 + 1074e576ee2504ee5840abc16c7a5865e06e0c37 https://github.com/dotnet/arcade diff --git a/eng/Versions.props b/eng/Versions.props index 2cd69256cc9e..3852ae1b9610 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -63,78 +63,78 @@ --> - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 - 8.0.0-preview.3.23158.1 - 8.0.0-preview.3.23158.1 + 8.0.0-preview.3.23172.11 + 8.0.0-preview.3.23172.11 - 8.0.0-preview.3.23152.4 - 8.0.0-preview.3.23152.4 - 8.0.0-preview.3.23152.4 - 8.0.0-preview.3.23152.4 - 8.0.0-preview.3.23152.4 - 8.0.0-preview.3.23152.4 - 8.0.0-preview.3.23152.4 - 8.0.0-preview.3.23152.4 + 8.0.0-preview.3.23172.4 + 8.0.0-preview.3.23172.4 + 8.0.0-preview.3.23172.4 + 8.0.0-preview.3.23172.4 + 8.0.0-preview.3.23172.4 + 8.0.0-preview.3.23172.4 + 8.0.0-preview.3.23172.4 + 8.0.0-preview.3.23172.4 8.0.0-beta.23168.1 8.0.0-beta.23168.1 diff --git a/src/Http/Routing/test/UnitTests/Builder/RouteHandlerEndpointRouteBuilderExtensionsTest.cs b/src/Http/Routing/test/UnitTests/Builder/RouteHandlerEndpointRouteBuilderExtensionsTest.cs index dfcd66ea30dd..79f0c72217c8 100644 --- a/src/Http/Routing/test/UnitTests/Builder/RouteHandlerEndpointRouteBuilderExtensionsTest.cs +++ b/src/Http/Routing/test/UnitTests/Builder/RouteHandlerEndpointRouteBuilderExtensionsTest.cs @@ -892,6 +892,7 @@ private static async Task AssertIdAsync(Endpoint endpoint, string expectedPatter Assert.Equal(expectedPattern, routeEndpoint.RoutePattern.RawText); var httpContext = new DefaultHttpContext(); + httpContext.RequestServices = new ServiceCollection().BuildServiceProvider(); httpContext.Request.RouteValues["id"] = "2"; var outStream = new MemoryStream(); httpContext.Response.Body = outStream; diff --git a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/BinderTypeModelBinderTest.cs b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/BinderTypeModelBinderTest.cs index 1f3f3750b67e..7a37ca632406 100644 --- a/src/Mvc/Mvc.Core/test/ModelBinding/Binders/BinderTypeModelBinderTest.cs +++ b/src/Mvc/Mvc.Core/test/ModelBinding/Binders/BinderTypeModelBinderTest.cs @@ -74,7 +74,7 @@ private static DefaultModelBindingContext GetBindingContext(Type modelType, Type { ActionContext = new ActionContext() { - HttpContext = new DefaultHttpContext(), + HttpContext = new DefaultHttpContext() { RequestServices = new ServiceCollection().BuildServiceProvider() }, }, ModelMetadata = metadataProvider.GetMetadataForType(modelType), ModelName = "someName", diff --git a/src/Mvc/Mvc.DataAnnotations/test/DataAnnotationsMetadataProviderTest.cs b/src/Mvc/Mvc.DataAnnotations/test/DataAnnotationsMetadataProviderTest.cs index 17f18190cd6f..b7215176cdb4 100644 --- a/src/Mvc/Mvc.DataAnnotations/test/DataAnnotationsMetadataProviderTest.cs +++ b/src/Mvc/Mvc.DataAnnotations/test/DataAnnotationsMetadataProviderTest.cs @@ -817,12 +817,12 @@ public void CreateDisplayMetadata_DisplayName_LocalizeWithStringLocalizer() // Arrange var expectedKeyValuePairs = new List> { - new KeyValuePair(new EnumGroupAndName(string.Empty, "name from resources"), "-2"), - new KeyValuePair(new EnumGroupAndName("Negatives", "menos uno value"), "-1"), new KeyValuePair(new EnumGroupAndName("Zero", string.Empty), "0"), new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithDisplayNames.One)), "1"), new KeyValuePair(new EnumGroupAndName(string.Empty, "dos value"), "2"), new KeyValuePair(new EnumGroupAndName(string.Empty, "tres value"), "3"), + new KeyValuePair(new EnumGroupAndName(string.Empty, "name from resources"), "-2"), + new KeyValuePair(new EnumGroupAndName("Negatives", "menos uno value"), "-1"), }; var type = typeof(EnumWithDisplayNames); @@ -870,24 +870,24 @@ public static TheoryData> { - new KeyValuePair(new EnumGroupAndName(string.Empty, "name from resources"), "-2"), - new KeyValuePair(new EnumGroupAndName("Negatives", "menos uno"), "-1"), new KeyValuePair(new EnumGroupAndName("Zero", string.Empty), "0"), new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithDisplayNames.One)), "1"), new KeyValuePair(new EnumGroupAndName(string.Empty, "dos"), "2"), new KeyValuePair(new EnumGroupAndName(string.Empty, "tres"), "3"), + new KeyValuePair(new EnumGroupAndName(string.Empty, "name from resources"), "-2"), + new KeyValuePair(new EnumGroupAndName("Negatives", "menos uno"), "-1"), } }, { typeof(EnumWithDisplayNames?), new List> { - new KeyValuePair(new EnumGroupAndName(string.Empty, "name from resources"), "-2"), - new KeyValuePair(new EnumGroupAndName("Negatives", "menos uno"), "-1"), new KeyValuePair(new EnumGroupAndName("Zero", string.Empty), "0"), new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithDisplayNames.One)), "1"), new KeyValuePair(new EnumGroupAndName(string.Empty, "dos"), "2"), new KeyValuePair(new EnumGroupAndName(string.Empty, "tres"), "3"), + new KeyValuePair(new EnumGroupAndName(string.Empty, "name from resources"), "-2"), + new KeyValuePair(new EnumGroupAndName("Negatives", "menos uno"), "-1"), } }, { @@ -922,46 +922,46 @@ public static TheoryData> { - new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.All)), "-1"), new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.Zero)), "0"), new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.One)), "1"), new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.Two)), "2"), new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.Four)), "4"), + new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.All)), "-1"), } }, { typeof(EnumWithFlags?), new List> { - new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.All)), "-1"), new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.Zero)), "0"), new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.One)), "1"), new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.Two)), "2"), new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.Four)), "4"), + new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithFlags.All)), "-1"), } }, { typeof(EnumWithFields), new List> { - new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.MinusTwo)), "-2"), - new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.MinusOne)), "-1"), new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.Zero)), "0"), new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.One)), "1"), new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.Two)), "2"), new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.Three)), "3"), + new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.MinusTwo)), "-2"), + new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.MinusOne)), "-1"), } }, { typeof(EnumWithFields?), new List> { - new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.MinusTwo)), "-2"), - new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.MinusOne)), "-1"), new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.Zero)), "0"), new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.One)), "1"), new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.Two)), "2"), new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.Three)), "3"), + new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.MinusTwo)), "-2"), + new KeyValuePair(new EnumGroupAndName(string.Empty, nameof(EnumWithFields.MinusOne)), "-1"), } }, }; @@ -1975,4 +1975,4 @@ public class TypeImplementIInterfaceWithNonNullProperty_AsNullable : AbstraceTyp { public override string Property { get; set; } } -} +} \ No newline at end of file diff --git a/src/Mvc/Mvc.Formatters.Xml/test/XmlDataContractSerializerInputFormatterTest.cs b/src/Mvc/Mvc.Formatters.Xml/test/XmlDataContractSerializerInputFormatterTest.cs index a4ebddf109e4..119174ff661b 100644 --- a/src/Mvc/Mvc.Formatters.Xml/test/XmlDataContractSerializerInputFormatterTest.cs +++ b/src/Mvc/Mvc.Formatters.Xml/test/XmlDataContractSerializerInputFormatterTest.cs @@ -449,7 +449,7 @@ public void SetMaxDepth_ThrowsWhenMaxDepthIsBelowOne() var formatter = new XmlDataContractSerializerInputFormatter(new MvcOptions()); // Act & Assert - Assert.Throws(() => formatter.MaxDepth = 0); + Assert.Throws(() => formatter.MaxDepth = 0); } [Fact] diff --git a/src/Mvc/Mvc.Formatters.Xml/test/XmlSerializerInputFormatterTest.cs b/src/Mvc/Mvc.Formatters.Xml/test/XmlSerializerInputFormatterTest.cs index 050b6fbfd956..f7f6d685540c 100644 --- a/src/Mvc/Mvc.Formatters.Xml/test/XmlSerializerInputFormatterTest.cs +++ b/src/Mvc/Mvc.Formatters.Xml/test/XmlSerializerInputFormatterTest.cs @@ -466,7 +466,7 @@ public void SetMaxDepth_ThrowsWhenMaxDepthIsBelowOne() var formatter = new XmlSerializerInputFormatter(new MvcOptions()); // Act & Assert - Assert.Throws(() => formatter.MaxDepth = 0); + Assert.Throws(() => formatter.MaxDepth = 0); } [Fact]