Repository navigation
Adds tests to verify enum behavior when un/mapped - #496
Conversation
- Related to issue 489
roji
left a comment
There was a problem hiding this comment.
LGTM, it's good to increase coverage like you're doing.
| } | ||
|
|
||
| [Fact] | ||
| public void Where_with_unmapped_enum_parameter_downcast_for_int_comparison_does_matter() |
There was a problem hiding this comment.
Like I wrote on a previous I'm issue, I'm not sure of the value of having negative tests like this - but I'm OK with it.
There was a problem hiding this comment.
I figured it would help monitor changes in type handling at the provider-level, and parameter handling for EF Core in general. I'm also thinking about adding some info on this issue to the enum mapping docs that would link here for an example. The idea being that if something changes, this test will start to fail (in a good way!) and we can update the docs accordingly.
But I could also accomplish this with an untracked file in my fork. Let me know if you change your mind and want to omit it, I'm good either way.
Related: #489