Show Sidebar
Autoplay
Autocomplete
Previous Lesson
Complete and Continue
Unit Testing for C# Developers
Getting Started (45m)
What is Automated Testing (2:40)
Benefits of Automated Testing (2:37)
Types of Tests (4:00)
Test Pyramid (2:55)
The Tooling (2:52)
Source Code (0:15)
Writing Your First Unit Test (10:27)
Testing All the Execution Paths (5:22)
Refactoring with Confidence (2:14)
Using NUnit in Visual Studio (3:59)
What is Test-driven Development (3:19)
Course Structure (1:46)
Summary (0:41)
Follow Me Around
Learning Paths
Fundamentals of Unit Testing (40m)
Introduction (0:47)
Characteristics of Good Unit Tests (2:03)
What to Test and What Not to Test (3:00)
Naming and Organizing Tests (2:36)
Introducing Rider (1:52)
Writing a Simple Unit Test (3:52)
Black-box Testing (4:43)
Set Up and Tear Down (3:36)
Parameterized Tests (3:25)
Ignoring Tests (1:33)
Writing Trustworthy Tests (6:11)
Developers Who Don't Write Tests (3:51)
Summary (1:33)
Core Unit Testing Techniques (50m)
Introduction (0:32)
Testing Strings (5:50)
Testing Arrays and Collections (6:11)
Testing the Return Type of Methods (4:02)
Testing Void Methods (4:42)
Testing Methods that Throw Exceptions (4:10)
Testing Methods that Raise an Event (4:34)
Testing Private Methods (9:50)
Code Coverage (2:30)
Testing in the Real-world (2:32)
Summary (0:46)
Exercises (20m)
Exercise- FizzBuzz (1:19)
Solution- FizzBuzz (6:19)
Exercise- DemeritPointsCalculator (0:54)
Solution- DemeritPointsCalculator (9:43)
Exercise- Stack (0:49)
Solution- Stack (14:55)
Breaking the External Dependencies (1h)
Introduction (2:16)
Loosely-coupled and Testable Code (3:34)
Refactoring Towards a Loosely-coupled Design (9:42)
Dependency Injection via Method Parameters (5:09)
Dependency Injection via Properties (2:41)
Dependency Injection via Constructor (4:22)
Dependency Injection Frameworks (3:26)
Mocking Frameworks (1:55)
Creating Mock Objects Using Moq (6:47)
State-based vs Interaction Testing (1:54)
Testing the Interaction between Two Objects (3:41)
Fake as Little as Possible (3:10)
An Example of a Mock Abuse (4:54)
Who Should Write Tests (2:01)
Excercises (45m)
Exercise-Video Service (1:11)
Refactoring VideoService (5:47)
Testing VideoService (7:55)
Exercise- InstallerHelper (1:26)
Refactoring InstallerHelper (4:47)
Testing InstallerHelper (8:05)
Exercise- EmployeeController (2:37)
Refacatroing EmployeeController (5:24)
Testing EmployeeController (4:00)
Project- Testing BookingHelper
Introduction (2:12)
Test Cases (3:40)
Extracting IBookingRepository (7:44)
Writing the First Test (4:29)
Refactoring (7:50)
Writing the Second Test (1:27)
Fixing a Bug (3:43)
Writing Additional Tests (4:44)
Project - HouseKeeperHelper (50m)
Introduction (2:07)
Refactoring for Testability (9:32)
Fixing a Design Issue (2:59)
An Alternative Solution
Writing the First Interaction Test (7:40)
Keeping Tests Clean (5:42)
Testing that a Method is Not Called (5:37)
Another Interaction Test (7:31)
Extracting Helper Methods (8:02)
Testing Exceptions (3:34)
Who Should Write Tests
Lesson content locked
If you're already enrolled,
you'll need to login
.
Enroll in Course to Unlock