Google
×
Jun 1, 2023 ˇ Moq is a mocking library for C# .NET that can help developers achieve better unit testing by improving the isolation of tests.
Moq is designed to be a very practical, unobtrusive and straight-forward way to quickly setup dependencies for your tests. Its API design helps even novice ...
Sep 15, 2020 ˇ Moq offers several utilities to properly configure method calls. As shown earlier, methods can be configured using the Setup method.
Jul 24, 2017 ˇ I will to share with you some techniques I use to make .NET unit test mocks more readable while remaining composable.
Apr 27, 2024 ˇ Mock.Get() takes some T and grabs the Mock containing it for you, if applicable (you'll get runtime exceptions if you try this on something that isn't a Mock's ...
Dec 17, 2022 ˇ This article is intended to explain the Verify, Setup and Callback features of the Moq unit testing framework with examples of how to use ...
Apr 11, 2021 ˇ We will use our constructor to pass a List<Author> and use Moq's Setup method to return the internal state. Yes, that's right, because our mock ...
Sep 21, 2021 ˇ Moq can already deal with "at most N times" even before verification; but it does not offer a means to specify "at least N times" before verification.
In this article we will understand various mocking setups using Moq framework. Basically those setups help during the of unit testing of an application.