C# 10 Unit Testing
Unit testing is an essential skill needed to write robust and high-quality code. This course will teach you how to write unit tests with .NET and C# to ensure that your code works as expected.
What you'll learn
To write robust and high-quality code, unit testing is an essential skill you need. In this course, C# 10 Unit Testing, you’ll learn how to write unit tests in C# to improve the code of your .NET software projects. First, you’ll learn how to create a test project and how to write and run different types of unit tests. Next, you’ll learn how to write testable code in your application by decoupling dependencies and you will learn how to work with Test Driven Development (TDD). Finally, you'll learn how to run your unit tests automatically after every code change by using a GitHub action.
When you're finished with this course, you’ll have the skills and knowledge of C# Unit Testing needed to unit test your .NET and C# projects.
Table of contents
- Introduction 1m
- Test the MachineDataProcessor 6m
- Know How to Decouple Dependencies 3m
- Create an ICoffeeCountStore Interface 6m
- Implement the Test 5m
- Write Another Test 4m
- Run Code before Every Test 3m
- Run Code after Every Test 2m
- Test the ConsoleCoffeeCountStore 3m
- Make the Class Testable 6m
- Summary 1m