CODE Magazine / Articles

Unit Testing

Articles filed under Unit Testing

Articles

Showing 1–4 of 4

  1. CODE Magazine: 2023 - May/Jun cover

    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.

  2. CODE Magazine: 2019 - March/April cover

    Part 4: The Tenets of UAT

    Rod's big project is drawing to a close, and it's time to consider User Acceptance Testing.

  3. CODE Magazine: 2019 - January/February cover

    Part 3: Merrily We Roll Along

    Rod continues the tale of an enormous conversion project.

  4. CODE Magazine: 2017 - September/October cover

    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.