Using Moq to Determine If a Method is Called

added by DotNetKicks
7/11/2022 1:06:59 PM

168 Views

In this article, we are going to see how to determine if a method is called during test execution. To do that, we are going to use Moq and its verification APIs. Let's start by exploring the most common approaches. Moq proposes three primary ways we should use to determine whether we have called a method or not.


0 comments