Patterns for Pragmatic Unit Testing
This course introduces you to the design patterns useful for a clean, easily maintainable test suite.
What you'll learn
Testing is a given in most modern codebases, with unit tests contributing a large portion of that code. However, the tests are often written without long-term maintenance in mind, creating a coupling between the code and the tests. This course will address some of the most common problems facing test code maintainability. It starts with a basic introduction to testing, moving into the more common unit test patterns, and finishing with legacy code testing patterns. It will use C# standards; however, the underlying patterns will be relevant to all developers.
Table of contents
- Introduction 1m
- Test Structure - Demo 3m
- Test Structure 6m
- Setup and Teardown 3m
- DAMP vs. DRY 1m
- Fakes 5m
- Seams 4m
- Abstract Test Infrastructure 5m
- Global Infrastructure 3m
- Template Test Class 2m
- Abstract Driver 4m
- Infrastructural Patterns 3m
- Parameterized Tests 3m
- Categorized Tests 1m
- Async 5m
- Anti-patterns 4m
- Resources 1m
- Summary 1m