diff --git a/src/Exercism.TestRunner.CSharp/Exercism.TestRunner.CSharp.csproj b/src/Exercism.TestRunner.CSharp/Exercism.TestRunner.CSharp.csproj index f8b6373..8cb063e 100644 --- a/src/Exercism.TestRunner.CSharp/Exercism.TestRunner.CSharp.csproj +++ b/src/Exercism.TestRunner.CSharp/Exercism.TestRunner.CSharp.csproj @@ -14,13 +14,13 @@ - + - - - - - + + + + + diff --git a/src/Exercism.TestRunner.CSharp/TestRunWriter.cs b/src/Exercism.TestRunner.CSharp/TestRunWriter.cs index 668c906..f871901 100644 --- a/src/Exercism.TestRunner.CSharp/TestRunWriter.cs +++ b/src/Exercism.TestRunner.CSharp/TestRunWriter.cs @@ -19,7 +19,7 @@ private static JsonSerializerOptions CreateJsonSerializerOptions() { var options = new JsonSerializerOptions { - IgnoreNullValues = true, + DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull, WriteIndented = true, }; options.Converters.Add(new JsonStringEnumConverter(JsonNamingPolicy.CamelCase)); diff --git a/test/Exercism.TestRunner.CSharp.IntegrationTests/Exercism.TestRunner.CSharp.IntegrationTests.csproj b/test/Exercism.TestRunner.CSharp.IntegrationTests/Exercism.TestRunner.CSharp.IntegrationTests.csproj index eae36af..89d9bca 100644 --- a/test/Exercism.TestRunner.CSharp.IntegrationTests/Exercism.TestRunner.CSharp.IntegrationTests.csproj +++ b/test/Exercism.TestRunner.CSharp.IntegrationTests/Exercism.TestRunner.CSharp.IntegrationTests.csproj @@ -6,8 +6,8 @@ - - + + diff --git a/test/Exercism.TestRunner.CSharp.IntegrationTests/TestRunResultReader.cs b/test/Exercism.TestRunner.CSharp.IntegrationTests/TestRunResultReader.cs index f7ad8ef..1596a2a 100644 --- a/test/Exercism.TestRunner.CSharp.IntegrationTests/TestRunResultReader.cs +++ b/test/Exercism.TestRunner.CSharp.IntegrationTests/TestRunResultReader.cs @@ -40,7 +40,7 @@ private static JsonSerializerOptions CreateJsonSerializerOptions() { var options = new JsonSerializerOptions { - IgnoreNullValues = true, + DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull, PropertyNamingPolicy = null }; options.Converters.Add(new JsonStringEnumConverter());