C# Unit Testing Essentials
Code, refactor and ship high quality C# code every time.
Before you start...
Course introduction
Course outline
Is this course for you?
Software prerequisites
Source code and other resources
Introduction
What is automated testing?
Types of tests
What is unit testing?
Do I need unit tests?
How many tests should I have?
Knowledge check
Introduction
Choosing a unit testing framework
Setting up VS Code for unit testing
Write your first unit test
Running your unit test
Debugging your unit test
Unit testing with Visual Studio
Knowledge check
Introduction
Unit test naming
Using the AAA pattern
Testing all code paths
Catching a regression
Refactoring with confidence
Knowledge check
Introduction
The xUnit test lifecycle
Getting test output
Writing parameterized tests
Ignoring tests
Testing internal methods
Knowledge check
Introduction
Asserting numbers, strings and dates
Using FluentAssertions
Asserting objects
Asserting collections
Asserting exceptions
Asserting raised events
Knowledge check