-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Unit Tests Of Methods Using EF.Functions Broken By EFCore 5 #43
Comments
I'm looking into trying to fix this by borrowing the client side implementations they deleted, but it might be beyond me |
Not worth the effort, better off using inmemoryprovider for any tests that require EF extensions. |
I think this is a mess, but if anybody wants it, this branch demonstrates a working unit test using EF.Like |
@matttamatic I have the same problem, why have You closed the issue? |
Because it was vastly easier to rewrite my broken tests using an InMemoryDatabase and every time upstream EF Core made any changes to the InMemory versions of EF.Functions, it would have to be manually pulled again. |
In dotnet/efcore#20294 the client side implementations of EF.Functions methods (eg EF.Functions.Like) were removed which broke any unit tests using them with mockqueryable data.
The text was updated successfully, but these errors were encountered: