AutoFixture tutorial
This repository contains a set of examples demonstrating how to use AutoFixture to generate test data for unit tests.
You can find more about autofixture by this links:
Install with: Install-Package AutoFixture
Examples files
- 01-ValueTypesGeneration.cs - generation of values of primitive and non-primitive value types
- 02-ComplexObjectsGeneration.cs - generation of instances of reference types
- 03-CustomizingFixtureObject.cs - customizing of a fixture object
- 04-CustomizingSingleInstanceCreation.cs - customizing single object creation
- 05-ImplementingCustomization.cs - demonstrates how to implement ISpecimenBuilder for more complex custimizations
- 06-IntegrationsWithMockingFrameworks.cs - demonstartes integration with Moq and NSubstitute libraries