From Zero to Hero: Unit testing for C# Developers
3h 39m 32s
English
Paid
January 9, 2024
There is a reason why Unit Testing is the bottom layer in the testing pyramid. You can only build a solid testing suite on a robust foundation. Nothing is more reassuring when working on a codebase than knowing that if you accidentally break something, a test will alert you, saving you hundreds to thousands or even hundreds of thousands of dollars in potential customer impact. In this course, Nick will teach you how to write modern unit tests for your code bases so you are always confident in change. Oh, and if you don't know what the testing pyramid is, don't worry. You will after you take this course.
Watch Online From Zero to Hero: Unit testing for C# Developers
Join premium to watch
Go to premium
# | Title | Duration |
---|---|---|
1 | Welcome | 02:22 |
2 | What will you learn in this course? | 03:56 |
3 | Who is this course for and prerequisites | 01:50 |
4 | Different types of testing | 07:16 |
5 | What is unit testing and why it's important? | 01:31 |
6 | The testing pyramid | 01:58 |
7 | Why should you write unit tests? | 03:13 |
8 | The 3 core unit testing concepts | 01:58 |
9 | Why xUnit? | 00:58 |
10 | Writing your first unit test | 06:24 |
11 | Structuring your solution | 02:51 |
12 | Naming in unit tests | 03:33 |
13 | Arrange, Act, Assert | 02:10 |
14 | xUnit's test execution model | 02:55 |
15 | Test Setup and Teardown | 05:47 |
16 | Parameterizing tests | 03:19 |
17 | Ignoring tests | 01:24 |
18 | Your turn to practice (Project source under the video) | 01:05 |
19 | My answer to the exercise | 00:41 |
20 | Section recap | 00:49 |
21 | Writing fluent assertions | 03:20 |
22 | Testing strings | 02:59 |
23 | Testing numbers | 02:01 |
24 | Testing dates | 01:38 |
25 | Testing objects | 03:33 |
26 | Testing enumerables | 03:33 |
27 | Testing methods that throw Exceptions | 02:24 |
28 | Testing for raised events | 01:30 |
29 | Testing private methods (members) | 01:25 |
30 | Testing internal methods (members) | 03:02 |
31 | Section recap | 00:49 |
32 | The problem with dependencies | 03:55 |
33 | Dependency injection to the rescue | 02:56 |
34 | What are fakes? | 03:04 |
35 | What is mocking? | 06:12 |
36 | Moq vs NSubstitute | 02:36 |
37 | Section recap | 00:54 |
38 | The project we will be adding unit tests to | 03:39 |
39 | The scope of our testing | 04:00 |
40 | Testing the application layer | 22:37 |
41 | Exercise: Testing the rest of the application layer (Project source under the video) | 01:25 |
42 | Exercise answer: Testing the rest of the application layer | 15:22 |
43 | But was all that necessary? | 02:12 |
44 | Testing the data layer | 01:14 |
45 | Testing the API layer | 09:52 |
46 | Exercise: Testing the rest of the API layer (Project source under the video) | 01:04 |
47 | Exercise answer: Testing the rest of the API layer | 13:20 |
48 | Section recap | 00:43 |
49 | Observing the default test execution behavior | 02:42 |
50 | The Class Fixture | 04:13 |
51 | The Collection Fixture | 05:05 |
52 | Running test in parallel | 05:44 |
53 | Advanced parameterization | 04:54 |
54 | Setting test execution timeouts | 01:18 |
55 | Testing Date and Time | 05:20 |
56 | Continuous testing | 01:56 |
57 | What is code coverage? | 02:58 |
58 | Measuring code coverage | 06:36 |
59 | Section recap | 00:49 |
60 | Course conclusion | 00:38 |
Similar courses to From Zero to Hero: Unit testing for C# Developers
![Foundation in C#: Object Oriented Programming Part 2](https://cdn.courseflix.net/courses/100x56/foundation-in-c-object-oriented-programming-part-2.jpg)
Foundation in C#: Object Oriented Programming Part 2
Duration 7 hours 24 minutes 3 seconds
Course
![Entity Framework Core - The Complete Guide (.NET Core 5)](https://cdn.courseflix.net/courses/100x56/entity-framework-core-the-complete-guide-net-core-5.jpg)
Entity Framework Core - The Complete Guide (.NET Core 5)
Duration 5 hours 24 minutes 16 seconds
Course
![From Zero to Hero: Dependency Injection in .NET](https://cdn.courseflix.net/courses/100x56/from-zero-to-hero-dependency-injection-in-net.jpg)
From Zero to Hero: Dependency Injection in .NET
Duration 4 hours 41 minutes 41 seconds
Course
![Building Applications with React 17 and ASP.NET Core 6](https://cdn.courseflix.net/courses/100x56/building-applications-with-react-17-and-asp-net-core-6.jpg)
Building Applications with React 17 and ASP.NET Core 6
Duration 19 hours 28 minutes 31 seconds
Course
![Foundation in C#: Object Oriented Programming](https://cdn.courseflix.net/courses/100x56/foundation-in-c-object-oriented-programming.jpg)
Foundation in C#: Object Oriented Programming
Duration 3 hours 24 minutes 9 seconds
Course
![Getting Started: Blazor](https://cdn.courseflix.net/courses/100x56/getting-started-blazor.jpg)
Getting Started: Blazor
Duration 7 hours 4 minutes 32 seconds
Course
![Unity RPG Shops & Abilities: Intermediate C# Game Coding](https://cdn.courseflix.net/courses/100x56/unity-rpg-shops-abilities-intermediate-c-game-coding.jpg)
Unity RPG Shops & Abilities: Intermediate C# Game Coding
Duration 18 hours 51 minutes 42 seconds
Course
![From Zero to Hero: Minimal APIs in .NET with C#](https://cdn.courseflix.net/courses/100x56/from-zero-to-hero-minimal-apis-in-net-with-c.jpg)
From Zero to Hero: Minimal APIs in .NET with C#
Duration 3 hours 33 minutes 6 seconds
Course
![Xamarin Forms: Build Native Mobile Apps with C#](https://cdn.courseflix.net/courses/100x56/xamarin-forms-build-native-mobile-apps-with-c.jpg)
Xamarin Forms: Build Native Mobile Apps with C#
Duration 7 hours 17 minutes 19 seconds
Course
![Learn Blazor Server (Blazor Server: In Depth)](https://cdn.courseflix.net/courses/100x56/learn-blazor-server-blazor-server-in-depth.jpg)
Learn Blazor Server (Blazor Server: In Depth)
Duration 16 hours 28 minutes 25 seconds
Course