Unit testing in the real world
Compared to other courses, that offer bloated content, split over multiple courses to get to you buy as much as possible, the Zero to Hero series offers all the content in one purchase. We start from the basics, we move into more intermediate content and we end up in some pretty advanced practices.
This doesn't mean that you need to be a senior developer to take the course. As long as you can read and write C# at a basic level, I will be able to teach you and guide you all the way to the end.
Trusted by professionals
"As always you make the concepts so simple for anyone to grasp. The way you showcase the unit testing techniques, by following practical examples of day to day problems that engineers are facing, is truly remarkable. Thanks Nick. Keep rocking and keep coding!"
Orestis Meikopoulos - Microsoft
Curriculum
- The 3 core unit testing concepts (1:57)
- Why xUnit? (0:57)
- Writing your first unit test (6:23)
- Structuring your solution (2:50)
- Naming in unit tests (3:32)
- Arrange, Act, Assert (2:09)
- xUnit's test execution model (2:54)
- Test Setup and Teardown (5:46)
- Parameterizing tests (3:18)
- Ignoring tests (1:23)
- Your turn to practice (Project source under the video) (1:04)
- My answer to the exercise (0:40)
- Section recap (0:48)
- Writing fluent assertions (3:19)
- Testing strings (2:58)
- Testing numbers (2:00)
- Testing dates (1:37)
- Testing objects (3:32)
- Testing enumerables (3:32)
- Testing methods that throw Exceptions (2:23)
- Testing for raised events (1:29)
- Testing private methods (members) (1:24)
- Testing internal methods (members) (3:01)
- Section recap (0:26)
- The project we will be adding unit tests to (3:38)
- The scope of our testing (3:59)
- Testing the application layer (22:35)
- Exercise: Testing the rest of the application layer (Project source under the video) (1:24)
- Exercise answer: Testing the rest of the application layer (15:21)
- But was all that necessary? (2:10)
- Testing the data layer (1:13)
- Testing the API layer (9:51)
- Exercise: Testing the rest of the API layer (Project source under the video) (1:03)
- Exercise answer: Testing the rest of the API layer (13:19)
- Section recap (0:42)
- Observing the default test execution behavior (2:41)
- The Class Fixture (4:12)
- The Collection Fixture (5:04)
- Running test in parallel (5:43)
- Advanced parameterization (4:53)
- Setting test execution timeouts (1:17)
- Testing Date and Time (5:19)
- Continuous testing (1:55)
- What is code coverage? (2:57)
- Measuring code coverage (6:35)
- Section recap (0:48)