Closed VILLAN3LL3 closed 2 years ago
Thank you @VILLAN3LL3 for your feedback. The issue fixed in the release v6.0.1.
With version 6.0.1 I'm running into a similar issue as mentioned in #23 . When I change the base collection after using ToListAsync on the mock, I also get System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
Hello @NanoWar. Thank you for your feedback. Could you create a new issue for that and add an example of unit tests to reproduce the your issue.
After having updated the MockQueryable package to version 6.0.0 some of my unit tests fail because
.ToListAsync()
now returns an empty list. Example code:The last line returns an empty list with the new package version. Why?
The failed tests and the full test code can be found here