C# Unit Testing with xUnit
- 7 courses
- 13 hours
- Skill IQ
Unit testing has become standard practice for today's software developers and xUnit is one of the most popular unit testing frameworks available for .NET. The goal of this learning path is to help you understand how to write clean, testable code, all the way from writing your first test to mocking out dependencies to developing a pragmatic suite of unit tests for your application.
Courses in this path
Beginner
The courses in this section will help you master the basics of writing unit tests. First, you will learn how to use xUnit, one of the most popular unit testing frameworks used in .NET. Then you will learn how to use Moq, a mocking framework which allows you to replace dependencies in your code when you write tests. Mastering these two frameworks will help you create unit tests for a wide-ranging set of scenarios you encounter when writing code.
Intermediate
After you have mastered the basics, the courses in this section will help you write better unit tests. You will learn how to write code that is more testable from the start and by doing so, improving the overall design of your code. Then you will learn how to go from writing individual unit tests to building a whole suite of tests for your application in a thoughtful, pragmatic way.
Advanced
There are a number of open source libraries that can help you write more readable, maintainable unit tests, and the courses in this section are designed to introduce you to the most useful of these libraries. A short investment of time in watching these courses will save you lots of time later as you learn about the advanced capabilities these libraries add to your unit testing toolkit.