.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, 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 0m
- Introduction 2m
- Simplifying the Arrange Phase of Tests with AutoFixture 2m
- Supported Frameworks 2m
- Introducing the Fixture Class 1m
- Creating a Test Project and Installing AutoFixture 3m
- Writing an Initial Test with Non-anonymous Test Data 3m
- Writing a Test with Manual Anonymous Test Data 1m
- Using an AutoFixture Fixture Instance to Create Anonymous Test Data 2m
- Summary 1m
- Introduction 1m
- Creating Anonymous Strings 7m
- Creating Anonymous Numbers 3m
- Creating Anonymous Dates and Times 4m
- Creating Enums and GUIDs 4m
- Generating Email Addresses 3m
- Creating Sequences of Anonymous Values 5m
- Creating Anonymous Instances of Custom Types 3m
- Creating Complex Anonymous Object Graphs 2m
- Creating Objects with DataAnnotations 2m
- Summary 2m
- Introduction 1m
- Customizing Values Generated by a Fixture Instance 7m
- Freezing Values in AutoFixture 3m
- Using the AutoFixture Test Data Builder Pattern 7m
- Understanding Specimens and the AutoFixture Pipeline 3m
- Examples of Prebuilt Customizations 4m
- Creating a Custom AutoFixture Specimen Builder 5m
- Summary 2m
- Introduction 1m
- The Problem with Manual Test Data Creation 4m
- Creating Refactor-safe Test Code with AutoFixture 2m
- Parameterized xUnit.net Tests with Anonymous Data 7m
- Auto-mocking with AutoFixture and Moq 6m
- Combining Auto Mocking and Auto Data in xUnit.net 5m
- Using AutoFixture to Improve Code Design and Maintainability 6m
- Summary and Further Learning 2m