-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot unit test specifications which sort by a Smart enum #383
Comments
Hi @idormenco, Yes, you'll face issues during There is no simple workaround here, unfortunately. We'll try to refactor the ordering infrastructure for the next major release. |
Thanks a lot for the headsup. Will comment out the tests for now |
I tried writing unit tests on a specification that will sort entities by status which is a SmartEnum but I get the
At least one object must implement IComparable
exception.If this specification is used to sort EF core entities SQL is generated correctly and there is no exception thrown.
Package versions:
Code to reproduce:
using the following statement will fix the problem for the in-memory sorting but fails for EF core sorting
The text was updated successfully, but these errors were encountered: