Introduction One of the most underused features of Moq, is its ability to handle callbacks and custom method implementations. While many developers are familiar with the basic setup and verification…
Underused Moq Features

Introduction One of the most underused features of Moq, is its ability to handle callbacks and custom method implementations. While many developers are familiar with the basic setup and verification…
Introduction Mocking ILogger<T> for testing methods that use logging in C# can be done effectively using the Moq library. The ILogger<T> interface is commonly used in .NET applications for logging…
Introduction Creating a simple calculator class using Test-Driven Development (TDD) in C# involves following the TDD cycle: write a failing test, write just enough code to make the test pass,…