More Expressive Testing in .NET with MSpec
Learn to write tests which better express the intent of your .NET code using the context/specification framework known as MSpec.
What you'll learn
This course will introduce you to a different way to think about testing your .NET code. Typical unit tests tend to be overly focused on the implementation details of the code instead of specifying the intent of the software. In this course, you will learn how to write specifications for your code using the Machine.Specifications (MSpec) framework. These specifications can more clearly describe what your software should do instead of how it does it, leading to a more useful and maintainable suite of tests for your system.
Table of contents
- Thoughts on Testing Styles 4m
- MSpec Basics 2m
- Delegates in .NET 7m
- Declaring a Specification 3m
- Implementing a Specification 2m
- Establishing the Context 3m
- Taking Action 3m
- MSpec vs. NUnit Comparison 4m
- Our First Real Specification 8m
- The Next Specification 3m
- Staying DRY 2m
- Refactoring with Inheritance 8m
- Refactoring with Nested Contexts 5m
- Summary 2m