diff --git a/src/AutoGuru.HotChocolate.PolymorphicIds.Tests/IdAttributeTests.PolyId_On_Objects_isEnabled=True.verified.txt b/src/AutoGuru.HotChocolate.PolymorphicIds.Tests/IdAttributeTests.PolyId_On_Objects_isEnabled=True.verified.txt index a14a41a..0fcc92b 100644 --- a/src/AutoGuru.HotChocolate.PolymorphicIds.Tests/IdAttributeTests.PolyId_On_Objects_isEnabled=True.verified.txt +++ b/src/AutoGuru.HotChocolate.PolymorphicIds.Tests/IdAttributeTests.PolyId_On_Objects_isEnabled=True.verified.txt @@ -10,7 +10,7 @@ "QmFyCmkx", null ], - "raw": "SomeId: 1, SomeIds: [1], SomeNullableId: 1, SomeNullableIds: [1, ]" + "raw": "SomeId: 1, SomeIds: [1], SomeNullableId: 1, SomeNullableIds: [1, null]" } } } \ No newline at end of file diff --git a/src/AutoGuru.HotChocolate.PolymorphicIds.Tests/IdAttributeTests.cs b/src/AutoGuru.HotChocolate.PolymorphicIds.Tests/IdAttributeTests.cs index cb97aa9..2435b89 100644 --- a/src/AutoGuru.HotChocolate.PolymorphicIds.Tests/IdAttributeTests.cs +++ b/src/AutoGuru.HotChocolate.PolymorphicIds.Tests/IdAttributeTests.cs @@ -571,8 +571,8 @@ public FooPayload( public string Raw => $"{nameof(SomeId)}: {SomeId}, " + $"{nameof(SomeIds)}: [{string.Join(", ", SomeIds)}], " + - $"{nameof(SomeNullableId)}: {SomeNullableId}, " + - $"{nameof(SomeNullableIds)}: [{string.Join(", ", SomeNullableIds ?? Array.Empty())}]"; + $"{nameof(SomeNullableId)}: {SomeNullableId ?? "null"}, " + + $"{nameof(SomeNullableIds)}: {(SomeNullableIds == null ? "null" : "[" + string.Join(", ", SomeNullableIds.Select(x => x?.ToString() ?? "null").ToArray()) + "]")}"; } public interface IFooPayload