Course
Skills
Test First Development - Part 1
Test first development techniques and practices with C#, Visual Studio, and NUnit
What you'll learn
This course introduces a test-first development style to build better software. We’ll discuss the value of unit testing and demonstrate the red-green-refactor workflow in the design and implementation of business requirements. Using tools like NUnit and JetBrains Resharper we’ll also demonstrate tips and practices for refactoring, and writing effective unit tests. This course is appropriate for developers new to the practice of writing unit tests.
Table of contents
Introduction to Test-First Development
24mins
- Introduction 1m
- Developer Testing 1m
- Demo: Ye Old Way Developer's Tested 3m
- Benefits 2m
- Unit Testing Defined 1m
- Testing New and Existing Code 1m
- Unit Testing Frameworks 2m
- How Unit Testing Frameworks Work 2m
- Demo: Running Unit Tests 1m
- Some .NET Unit Test Runners 1m
- Test First Development 2m
- Test-Driven Development 2m
- Demo: Test-First Development 2m
- More Test First Practices 2m
- Final Thoughts and Summary 2m
Writing Unit Tests Part I
47mins
Writing Unit Tests II
46mins
- Introduction 7m
- Test Project Organization 4m
- Unit vs. Integration Test 2m
- Demo: Organization and Test Setup 9m
- xUnit Organizational Model 2m
- Unit Test Lifecycle 2m
- Demo: TestFixture and Categories 7m
- Demo: Testing the Sad Path 7m
- Demo: Asserting Yourself 3m
- Demo: Final Project Organization 2m
- Summary 2m
Introduction to Refactoring
38mins
Driving Design with Unit Tests
22mins
Isolating Code
34mins
- Introduction 2m
- Faking Out the SUT Code 2m
- Test Doubles 0m
- Dummies 2m
- Stubs 1m
- Fakes 1m
- Spies 1m
- Mocks 2m
- Introducing the Application 3m
- Code Organization 2m
- Demo: Adding the Edit Owner View 3m
- Demo: First Test Double 1m
- Demo: The Need for a Stub 1m
- Demo: Stub and Spy 3m
- Demo: Using a Mock 7m
- Summary 2m