3 ways to check the object passed to mocks with Moq in C#
When writing unit tests, you can use Mocks to simulate the usage of class dependencies.
Even though some developers are harshly against the usage of mocks, they can be useful, especially when the mocked operation does not return any value, but still,...
code4it.hashnode.dev5 min read
Davide Bellone
Principal backend developer | Content Creator | Microsoft MVP
Special thanks to Moke who found an error in the last example.