.NET Unit Testing with AutoFixture

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.
Course info
Rating
(12)
Level
Beginner
Updated
Aug 7, 2020
Duration
1h 59m
Table of contents
Course Overview
Getting Started with AutoFixture
Creating Anonymous Test Data and Objects with AutoFixture
Customizing AutoFixture Object Creation
Writing Less Test Code and Improving Test Maintenance
Description
Course info
Rating
(12)
Level
Beginner
Updated
Aug 7, 2020
Duration
1h 59m
Description

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.

About the author
About the author

With over 15 years experience, Jason Roberts is a Microsoft .NET MVP, freelance developer, and author.

More from the author
Approval Tests for .NET
Intermediate
2h 21m
Sep 16, 2020
Mocking with Moq and xUnit
Beginner
2h 14m
May 26, 2020
More courses by Jason Roberts
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi, everyone. My name is Jason Roberts and welcome to my course, .NET Unit Testing with AutoFixture. I'm a freelance developer and author. Test code can quickly become hard to read and hard to maintain. Sometimes a simple change in the production code can suddenly mean a whole lot of additional work is needed just to make the existing tests compile. In this course, we're going to learn how to make unit testing easier with the free, open source AutoFixture library. Some of the major topics that we'll cover include, how to simplify the arrange phase of your tests, how to generate anonymous test data, how to customize anonymous object creation, and how to increase productivity by needing to write fewer lines of test code in the first place. By the end of this course, you'll know how to use AutoFixture to write better, more maintainable, and more readable test code. Before beginning the course, you should be familiar with the basics of unit testing and C#. I hope you'll join me on this journey to learn AutoFixture with the .NET Unit Testing with AutoFixture course at Pluralsight.