From 0339f168ad00c4342194306a7bf099450d14552c Mon Sep 17 00:00:00 2001 From: philipthomas Date: Mon, 19 Aug 2024 11:34:11 -0400 Subject: [PATCH] setting PropertyNameCaseInsensitive correctly for tests --- ...thCustomSerializerPropertyNameCaseInsensitiveFalseTests.cs | 4 ++-- ...ithCustomSerializerPropertyNameCaseInsensitiveTrueTests.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/CFP/AllVersionsAndDeletes/BuilderWithCustomSerializerPropertyNameCaseInsensitiveFalseTests.cs b/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/CFP/AllVersionsAndDeletes/BuilderWithCustomSerializerPropertyNameCaseInsensitiveFalseTests.cs index d45640ecb8..04dd4a55a2 100644 --- a/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/CFP/AllVersionsAndDeletes/BuilderWithCustomSerializerPropertyNameCaseInsensitiveFalseTests.cs +++ b/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/CFP/AllVersionsAndDeletes/BuilderWithCustomSerializerPropertyNameCaseInsensitiveFalseTests.cs @@ -156,7 +156,7 @@ static void ValidateSystemTextJsonDeserialization(string json) json: json, options: new JsonSerializerOptions() { - PropertyNameCaseInsensitive = true, + PropertyNameCaseInsensitive = false, Converters = { new JsonStringEnumConverter(), } })); } @@ -266,7 +266,7 @@ static void ValidateSystemTextJsonDeserialization(string json) json: json, options: new JsonSerializerOptions() { - PropertyNameCaseInsensitive = true, + PropertyNameCaseInsensitive = false, Converters = { new JsonStringEnumConverter(), } })); } diff --git a/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/CFP/AllVersionsAndDeletes/BuilderWithCustomSerializerPropertyNameCaseInsensitiveTrueTests.cs b/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/CFP/AllVersionsAndDeletes/BuilderWithCustomSerializerPropertyNameCaseInsensitiveTrueTests.cs index 7a899e340b..994c3b9e6b 100644 --- a/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/CFP/AllVersionsAndDeletes/BuilderWithCustomSerializerPropertyNameCaseInsensitiveTrueTests.cs +++ b/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/CFP/AllVersionsAndDeletes/BuilderWithCustomSerializerPropertyNameCaseInsensitiveTrueTests.cs @@ -88,7 +88,7 @@ static void ValidateSystemTextJsonDeserialization(string json) json: json, options: new JsonSerializerOptions() { - PropertyNameCaseInsensitive = false, + PropertyNameCaseInsensitive = true, Converters = { new JsonStringEnumConverter(), } })); }