NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet, #187 most downloaded on NuGet
AutoFixture makes it easier for developers to do Test-Driven Development by automating non-relevant Test Fixture Setup, allowing the Test Developer to focus on the essentials of each test case.
Latest stable
4.18.1
Last release 2 years ago
no release in 18 months
Ships unpredictably
gaps range from 2 weeks to 1.8 years
Most releases are documented
notes for 40 of the last 60 stable releases
9 versions withdrawn
withdrawn after publishing
127 years old
248 releases · first in 1900
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Reimplemented XUnit 2 AutoData attributes
Reimplemented XUnit 2 AutoData attributes
Added COC, license and foundation information by @aivascu in #1393
Full Changelog: v4.18.0...v4.18.1
Full Changelog: https://github.com/AutoFixture/AutoFixture/compare/v4.18.0...v4.18.1
Fixed failing build due to outdated dependencies by @aivascu in https://github.com/AutoFixture/AutoFixture/pull/1287
Full Changelog: https://github.com/AutoFixture/AutoFixture/compare/v4.17.0...v4.18.0
Add behavior for setting read-only collection properties. (#1177, thanks @charles-salmon)
New Features:
Add support for EnumDataType annotation attribute (#1218, thanks @elasskiy)
New features:
EnumDataType annotation attribute (#1218, thanks @elasskiy)Fixes:
ConstructorInitializedMemberAssertion false positive for bool arguments (#1236)ref/out value when value is modified by user (#1251)Extends support for v6 of FakeItEasy in AutoFixture.AutoFakeItEasy
Improvements:
v6 of FakeItEasy in AutoFixture.AutoFakeItEasyFSharp.Core in AutoFixture.AutoFoq and AutoFixture.Idioms.FsCheck
FSharp.Core (>=3.0.2 && < 5.0.0)FSharp.Core (>=4.2.3)Added idiomatic assertions for IEqualityComparer (#1194, thanks @Kralizek)
New Features:
IEqualityComparer<T> (#1194, thanks @Kralizek)Added .NET Standard v2.0 support for AutoFoq (#1184, thanks @josh-degraw)
New Features:
Improvements and fixes:
Add EmptyStringBehaviorExpectation and WhiteSpaceStringBehaviorExpectation to Idioms project (#896, @aivascu).
New features:
EmptyStringBehaviorExpectation and WhiteSpaceStringBehaviorExpectation to Idioms project (#896, @aivascu).Add MemberAutoData attribute to xUnit 2 glue library to mimic MemberData (#1132, @muncinsky).
New features:
MemberAutoData attribute to xUnit 2 glue library to mimic MemberData (#1132, @muncinsky).Support null value as a valid argument for InlineAutoDataAttribute for NUnit 3 (#1129, @mjuen).
Improvements:
null value as a valid argument for InlineAutoDataAttribute for NUnit 3 (#1129, @mjuen).null guard clauses to the internal code (#1128).Support netstandard 2.0 directly by all the packages (#1115).
Improvements:
netstandard 2.0 directly by all the packages (#1115).Moq support for netstandard 1.5 (#1120).Other changes:
Switch to the new NuGet license format (#1101).
New features:
Improvements and fixes:
Support FakeItEasy 5 (#1088, thanks @blairconrad).
New features:
netstandard 2.0 by FakeItEasy integration library (#1090, thanks @blairconrad).Improvements and fixes:
CallBase flag for Moq generated delegates (#1095, thanks @Kralizek).Add With() extension method overload taking factory method (#1084).
New features:
With() extension method overload taking factory method (#1084).Improve type generation for idioms guard clause assertion (#1081, thanks @frblondin).
Improvements and fixes:
Deprecate redundant customizations.
New features:
LambdaExpression type) (thanks @bordecal).UnwrapMemberRequest builder. See motivation in #1055.ToCustomization() extension. See motivation in #1056.Improvements and fixes:
[MinLength] attribute is specified only for arrays (thanks @Pvlerick).Added auto-configured mode for the FakeItEasy integration (thanks @blairconrad) 🎉
New features:
Range annotation attribute now supports TimeSpan (thanks @damian-krychowski)MinLength and MaxLength data annotation attributes (thanks again @damian-krychowski)Use Fare library as a dependency, instead of embedding it locally (#938).
Improvements:
Fare library as a dependency, instead of embedding it locally (#938).netstardard2.0 directly (#993).[Moq] Fix cannot set inherited writable properties when configured customization mode is used (thanks to @karoldeland).
A couple of bug fixes:
ArgumentNullException when Fixture is initialized with null engineParts argument.Added option to generate delegates via the mock library for the following integrations:
Added option to generate delegates via the mock library for the following integrations:
To enable the feature use new AutoXXXCustomization { GenerateDelegates = true }.
Additionally, obsoleted the AutoConfiguredXXXCustomization in favor of AutoXXXCustomization { ConfigureMembers = true }. That allows to keep only one entry point for each glue library.
Thanks to @blairconrad for the help!
Improved support for the common .NET collection interfaces:
Improved support for the common .NET collection interfaces:
IReadOnlyDictionary<,> and ISet<>.Thanks @Kralizek for contribution!
Make customization expression validation more robust (fixes #970).
Make customization expression validation more robust (fixes #970).
A major release of the AutoFixture product.
A major release of the AutoFixture product.
Refer to the v4.0 Release Notes to find changes compared to the latest v3.
Here is the list of the most important changes since the v4.0.0-rc1:
RangeAttribute support to handle non-numeric member types (#920, #722)RangeAttribute usage causes arithmetic OverflowException (#453)ObjectCreationException wrapping with full path (#892)RandomRangedNumberCustomization (#899)ISpecimenBuilderNode in ISpecimenBuilderTransformation.Transform() method (#905)InlineAutoDataAttribute constructor to take argument of the DataAttribute type (#911)TypeRelay (#936)ExactTypeSpecification and remove redundancies (#935)IReadOnlyList<> interface out of the box (#924)NoDataAnnotationsCustomization type to the AutoFixture.DataAnnotations namespace (#957)Jump to bottom Edit New page
mantal edited this page Jan 11, 2018 · 29 revisions
This is our 4th major version of the AutoFixture product. Project follow the Semantic Versioning , therefore breaking changes are allowed in this release. We used this opportunity to improve our code base and brought some new features and improvements together with the breaking changes.
A major release of the AutoFixture product. Refer to the v4.0 Release Notes wiki page to find the change list.
A major release of the AutoFixture product. Refer to the v4.0 Release Notes wiki page to find the change list.
Add a feature to enable fixed test names for the NUnit3 integration. That allows to run NUnit3 tests that use AutoFixture using VS and NCrunch runners
Add a feature to enable fixed test names for the NUnit3 integration. That allows to run NUnit3 tests that use AutoFixture using VS and NCrunch runners without issues. More detail on feature here (#709, many thanks to @frblondin).
Improve performance if there are multiple fixture customizations in a row (#818).
Improve performance if there are multiple fixture customizations in a row (#818).
Fix get-only properties are not being setup properly for recent versions of Moq (#788, thanks to @nphmuller and @dcastro).
Improve performance of the fixture customization (#793).
Improve performance of the fixture customization (#793).
Fix GuardClauseAssertion returns false positive when applied to abstract methods (#715, thanks to @sergeyshushlyapin).
Fix GuardClauseAssertion returns false positive when applied to abstract methods (#715, thanks to @sergeyshushlyapin).
Fix AutoFakeItEasy integration fails for abstract classes when using FakeItEasy 2. (#693, thanks to @blairconrad).
Fix AutoFakeItEasy integration fails for abstract classes when using FakeItEasy 2. (#693, thanks to @blairconrad).
P.S. It's the first release since the Governance Model change 🎉
Nothing published for this version
Nothing published for this version
Automatically populates SortedList<,> with data.
Automatically populates SortedList<,> with data.
Nothing published for this version
Populated SortedDictionary<,> by default, thereby resolving https://github.com/AutoFixture/AutoFixture/issues/623.
Populated SortedDictionary<,> by default, thereby resolving https://github.com/AutoFixture/AutoFixture/issues/623.
Added _AutoFixture.AutoFakeItEasy2_ package, which is a Glue Library that enables AutoFixture to work as an Auto-mocking Container using FakeItEasy 2.
Added AutoFixture.AutoFakeItEasy2 package, which is a Glue Library that enables AutoFixture to work as an Auto-mocking Container using FakeItEasy 2.x (instead of FakeItEasy 1.x, which is still supported by AutoFixture.AutoFakeItEasy).
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
SortedSet is now filled with values by default.
SortedSet<T> is now filled with values by default.
Fixture can now resolve lambda expressions.
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.