-
Course
- Core Tech
.NET Unit Testing with AutoFixture 4
This course will teach you how to use AutoFixture to improve your test code and make tests quicker to write, more readable, and more maintainable.
What you'll learn
Automated tests can be time consuming to write and costly to maintain if every time you change the production code you must update all the tests. In this course, .NET Unit Testing with AutoFixture 4, you’ll learn to how to use AutoFixture to automatically generate anonymous test data. First, you’ll explore how to use AutoFixture to generate anonymous test data for both basic types and your own custom types. Next, you’ll discover powerful ways to control and customize how AutoFixture generates anonymous test objects. Finally, you’ll learn how to dramatically reduce the amount of test code you need to write by getting AutoFixture to also create the thing you’re testing and even automatically create mock dependencies. When you’re finished with this course, you’ll have the skills and knowledge of AutoFixture needed to write unit tests more quickly and easily.
Table of contents
- Version Check | 15s
- Introduction | 2m 7s
- Simplifying the Arrange Phase of Tests with AutoFixture | 2m 11s
- Supported Frameworks | 1m 34s
- Introducing the Fixture Class | 1m 7s
- Creating a Test Project and Installing AutoFixture | 2m 31s
- Writing an Initial Test with Non-anonymous Test Data | 2m 34s
- Writing a Test with Manual Anonymous Test Data | 1m 10s
- Using an AutoFixture Fixture Instance to Create Anonymous Test Data | 2m 11s
- Summary | 1m 25s
About the author
With over 15 years experience, Jason Roberts is a Microsoft .NET MVP, freelance developer, and author.
More Courses by Jason