Skip to content

Commit 3154988

Browse files
Fix failing test.
1 parent 8c4c57d commit 3154988

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libraries/System.Text.Json/tests/System.Text.Json.SourceGeneration.Unit.Tests/JsonSourceGeneratorDiagnosticsTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ public void JsonStringEnumConverterWarns()
344344

345345
var expectedDiagnostics = new DiagnosticData[]
346346
{
347-
new(DiagnosticSeverity.Warning, enum1TypeLocation, "The member 'HelloWorld.Enum1' has been annotated with 'JsonStringEnumConverter' which is not supported in Native AOT. Consider using the generic 'JsonStringEnumConverter<TEnum>' instead."),
348-
new(DiagnosticSeverity.Warning, enum2PropLocation, "The member 'HelloWorld.MyClass.Enum2Prop' has been annotated with 'JsonStringEnumConverter' which is not supported in Native AOT. Consider using the generic 'JsonStringEnumConverter<TEnum>' instead."),
347+
new(DiagnosticSeverity.Warning, enum1TypeLocation, "The member 'HelloWorld.Enum1' has been annotated with 'JsonStringEnumConverter' which is not supported in native AOT. Consider using the generic 'JsonStringEnumConverter<TEnum>' instead."),
348+
new(DiagnosticSeverity.Warning, enum2PropLocation, "The member 'HelloWorld.MyClass.Enum2Prop' has been annotated with 'JsonStringEnumConverter' which is not supported in native AOT. Consider using the generic 'JsonStringEnumConverter<TEnum>' instead."),
349349
};
350350

351351
CompilationHelper.AssertEqualDiagnosticMessages(expectedDiagnostics, result.Diagnostics);

0 commit comments

Comments
 (0)