Open utterances-bot opened 9 months ago
You can use Capture:
List
I can't find that method. Does it come from Moq?
This is really useful, thanks.
I especially liked the idea of asserting in the verify, then just returning true if it makes it through.
3 ways to check the object passed to mocks with Moq in C# | Code4IT
Code4IT - a blog for .NET enthusiasts, Azure lovers, and Backend developers
https://www.code4it.dev/blog/check-objects-called-mocks-in-moq/