In unit tests, sometimes you need to perform deep checks on the object passed to the mocked service. We will learn 3 ways to do that with Moq and C#
Continue reading
Moq and NSubstitute are two of the most used library to mock dependencies on your Unit Tests. How do they differ? How can we move from one library to the other?
Continue reading
Code coverage is a good indicator of the health of your projects. We’ll see how to show Cobertura reports associated to your builds on Azure DevOps and how to display the progress on Dashboard.
Continue reading
DateTime, Guid, and Random values are not under your direct control. You should abstract them to write better code and testing. We’ll see 3 ways to inject and test them in .NET Core projects.
Continue reading
Code coverage is an indicator of the quality of your code. With Coverlet and VS2019 you can have a human readable report to see where to improve your code.
Continue reading
Integration tests are useful to check if multiple components fit together well. How can you test your APIs? And how can you mock dependencies?
Continue reading