Bundle: Unit testing with C#

Bundle: Unit testing
with C#

This page contains all the tutorials about C# unit testing. I have bundled these so you can find everything about unit testing with C#. The following tutorials differ from beginner to expert, so you can follow them in the right order. I ordered them from easy to expert.

Missing a topic or are you really interested in something? Let me know and send me a message.

I will add more tutorials in the future. So if you are interested in more unit test tutorials make sure to subscribe to my newsletter.

UNIT TESTING WITH C#

Unit tests are really important to keep your code safe and healthy. It can prove your code works in a happy flow. Learn basic unit testing in this tutorial. We won’t dive into it to much, just the basics.

This tutorial will show you the basic idea about and behind unit testing

Testing exceptions with xUnit

Exceptions are a part of your application. Usually used in logic. Testing exceptions with xUnit is really important and fairly easy.

This tutorial shows you how to test known exceptions and how to handle them with your unit tests.

Unit testing and mocking

Sometimes your class under test needs other classes or objects to work. With mocking, we can fake these so we don’t need to initialize them. Mocking helps create better unit tests.

This tutorial shows you how to install, set up, and the basics of mocking

Kens Learning Curve