Price
€5Testing C# with xUnit: From First Test to CI
Learn to test C# code properly — unit tests, mocks, integration tests with a real database, and CI.
- Intermediate
- 18 lessons · 2h 52m of video
- English
- Updated Oct 2026
The route
Curriculum
5 modules · 18 lessons · 2h 52m of video
-
1
33m
First tests
4 lessons
-
2
36m
Structure and data
4 lessons
-
3
38m
Mocks and fakes
4 lessons
-
4
44m
Integration tests
4 lessons
-
5
21m
CI
2 lessons
Destination
What you will be able to do
- Write clear unit tests with xUnit
- Use fakes and mocks sensibly
- Run integration tests with Testcontainers
- Test time, randomness and failures
- Run the suite in CI on every push
Before you buy
You will need
- Everyday C# experience
- Docker for the integration tests
About this course
The journey
Tests are what let you change code without fear. This course starts with your first xUnit test and builds up to a full test suite for a small web API, including integration tests against a real database in a container.
You learn how to structure tests, when to mock and when not to, how to test time and randomness, and how to run everything in a CI pipeline on every push.
How this course is made
This course was created by KOODIJAAM OÜ using AI tools: the lessons, exercises and example code are AI-generated, and the preview video is generated automatically from the course code.
You can watch the preview and read the full lesson list on this page before you buy. If you find a mistake, tell us — we fix it, and the fix reaches everyone who owns the course.
Information desk
Frequently asked questions
Still unsure about something? Write to support@koodijaam.com and a human answers, usually the same working day.
What students say
No reviews yet
Nobody has reviewed this course yet, so there is no score to show. Buy it, work through it, and your review could be the one that helps the next developer decide.
Roblox, Luau, SAS, Microsoft, .NET, Blazor, Avalonia, Neovim, NGINX, OpenResty, LÖVE, PyTorch, NumPy and other product names are trademarks of their respective owners. Koodijaam is an independent course provider and is not affiliated with or endorsed by them.
One-time payment · no expiry