Moq, argument matching and Times.Never

Consider the following test code that is using Moq: Not going too much into details, what this method does is verify that _logRepository.LogRequest was never called. The tests that were using this check were always green, but after some time, we found out that there actually are entries in the logs that were supposed not … More Moq, argument matching and Times.Never