DometrainIntermediate
Testing in .NET
Unit test .NET code with xUnit, restructure classes so they can be tested, build features test first, then test a whole ASP.NET Core app over HTTP. It starts from code with few tests or none, and the last stage expects you to know ASP.NET Core.
- Milestone 1
Unit tests
Write unit tests with xUnit, using theories, fixtures and substitutes for dependencies.
- From Zero to Hero: Unit testing for C# DevelopersStarts with what a unit test is and the techniques for isolating code from its dependencies.3h 39m
- From Zero to Hero: Testing with xUnit in C#Goes deep on one framework: data-driven theories, fixtures, the test lifecycle and extending xUnit for your own needs.6h
- Milestone 2
Design for testability
Restructure classes so each has a narrow responsibility and dependencies you can replace in a test.
- From Zero to Hero: Writing Testable Code in C#Once you can write tests, the friction moves to the code under test: explicit behaviors, narrow responsibilities and isolated dependencies.4h 28m
- From Zero to Hero: Refactoring for C# DevelopersApplies those ideas to code that already exists, with chapters on refactoring for clarity, lower complexity and testability.5h 7m
- Milestone 3
Test-driven development
Build a feature test first, handle dependencies in TDD, and add tests to legacy code.
- Milestone 4
Integration tests
Test an ASP.NET Core app through HTTP with its database and other dependencies in place.
Certificate of completionUnlocks after all 6 courses






