-
Using Moq: A Simple Guide to Mocking for .NET
Last updated: Monday, December 8, 2025
Published in: CODE Magazine: 2023 - May/Jun
Moq is a mocking library for C# .NET that can help developers achieve better unit testing by improving the isolation of tests. This article explains how to use Moq for mocking, including its features such as parameter matching, setups, verification, and sequences. Moq's fluent interface is easy to use compared to other mocking libraries and it enforces loosely coupled software design using dependency injection, resulting in modular code that is easier to test, read, and extend. The article concludes with additional resources for further reading on Moq.
-
Part 4: The Tenets of UAT
Last updated: Thursday, December 16, 2021
Published in: CODE Magazine: 2019 - March/April
Rod's big project is drawing to a close, and it's time to consider User Acceptance Testing.
-
Part 3: Merrily We Roll Along
Last updated: Thursday, December 16, 2021
Published in: CODE Magazine: 2019 - January/February
Rod continues the tale of an enormous conversion project.
-
Improving Code Quality with Unit Tests
Last updated: Thursday, May 13, 2021
Published in: CODE Magazine: 2017 - September/October
Insufficient testing can lead to devastating results. Find out what you can do to minimize outages as Keith explores unit testing using a Python tool called Coverage.py.

