CODE Magazine / Articles
Unit Testing
Articles filed under Unit Testing
Articles
Showing 1–4 of 4
-
Using Moq: A Simple Guide to Mocking for .NET
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
Rod's big project is drawing to a close, and it's time to consider User Acceptance Testing.
-
Part 3: Merrily We Roll Along
Rod continues the tale of an enormous conversion project.
-
Improving Code Quality with Unit Tests
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.

