Commit 3ab914b
Fix nullable UInt64 enum test to use UL literals for InlineData
Changed InlineData attributes to use ulong (UL) literals instead of EnumU64 casts. This allows xUnit to properly convert the values to EnumU64? (nullable) parameters.
The fix:
1. Changed from (EnumU64) casts to raw UL literals (e.g., 0UL, 18446744073709551615UL)
2. Updated comparison logic to cast value to ulong for comparison
3. This resolves the ArgumentException where xUnit couldn't convert UInt64 to Nullable<EnumU64>
All 7 test cases now pass correctly on both MySQL and MariaDB with proper nullable enum handling.
Co-authored-by: renemadsen <[email protected]>1 parent 94e96cb commit 3ab914b
File tree
1 file changed
+9
-9
lines changed- test/EFCore.MySql.FunctionalTests/Query
1 file changed
+9
-9
lines changedLines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
0 commit comments