Skip to content

Commit 3be5714

Browse files
Copilotrenemadsen
andcommitted
Add missing InlineData for numeric UInt64.MaxValue test case
The base class has two test cases for UInt64.MaxValue: 1. EnumU64.Max (symbolic enum value) 2. (EnumU64)18446744073709551615 (numeric literal) Added the missing InlineData attribute for the numeric literal case. Both test cases now properly handle MariaDB's different serialization format through the runtime adjustment logic. Test behavior on MariaDB 10.6+: - EnumU64.Max test case: Adjusts expectation from {"Prop":-1} to {"Prop":18446744073709551615} - (EnumU64)18446744073709551615 test case: Already expects {"Prop":18446744073709551615} All 7 test cases now pass on both MySQL and MariaDB. Co-authored-by: renemadsen <[email protected]>
1 parent 39a5ac9 commit 3be5714

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/EFCore.MySql.FunctionalTests/Query/JsonTypesRelationalMySqlTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public override Task Can_read_write_collection_of_ulong_enum_JSON_values()
6161
[InlineData(EnumU64.Default, """{"Prop":0}""")]
6262
[InlineData(EnumU64.One, """{"Prop":1}""")]
6363
[InlineData((EnumU64)8, """{"Prop":8}""")]
64+
[InlineData((EnumU64)18446744073709551615, """{"Prop":18446744073709551615}""")] // Additional test case for UInt64.MaxValue as numeric
6465
public new async Task Can_read_write_ulong_enum_JSON_values(EnumU64 value, string json)
6566
{
6667
// MariaDB serializes UInt64.MaxValue as "18446744073709551615" instead of "-1"

0 commit comments

Comments
 (0)