Testing

Unit testing, integration testing, test-driven development (TDD), mocking, and strategies for building reliable software.

  • Pragmatic TDD in C#: A Step-by-Step Guide to Unit Testing

    Writing code without unit tests can be risky because you might not realize issues until it’s too late. Unit testing helps to make sure your code actually does what it’s supposed to. In this post, we’ll break down unit testing in C# using NUnit and explore how Test-Driven Development (TDD) can make your life easier.

  • How to Use Mocking Effectively in C# TDD Pipelines

    In the last post we have discussed core principles of unit testing and TDD. In this post, we’ll walk through a simple example of how to use Moq as mocking framework and Dependency Injection with NUnit in the context of Test-Driven Development (TDD) in C#. This combination allows clean and maintainable tests by mocking dependencies and focusing on the behavior of the system under test.

  • Architecting Testable WinForms Applications Using the MVP Pattern

    Today, WinForms apps mainly belong to legacy code because of increasing popularity of WPF. And when one team decides about the development stack for the brand new desktop application, they mainly vote for WPF. On the other hand, there are demands for WinForms applications when it is needed to upgrade existing software which is tightly coupled with WinForms, demands for higher performance, etc.