AutoFixture

AutoFixture is an open source library for .NET designed to minimize the 'Arrange' phase of your unit tests in order to maximize maintainability. Its primary goal is to allow developers to focus on what is being tested rather than how to setup the test scenario, by making it easier to create object graphs containing test data.

MIT License

Stars
3.3K
Committers
80

Bot releases are hidden (Show)

AutoFixture - Version 4.8.0

Published by zvirja over 5 years ago

New features:

  • Support NSubstitute 4 (#1079).

Improvements and fixes:

  • Switch to the new NuGet license format (#1101).
AutoFixture - Version 4.7.0

Published by zvirja over 5 years ago

New features:

  • Support FakeItEasy 5 (#1088, thanks @blairconrad).
  • Target netstandard 2.0 by FakeItEasy integration library (#1090, thanks @blairconrad).

Improvements and fixes:

  • Do not specify CallBase flag for Moq generated delegates (#1095, thanks @Kralizek).
AutoFixture - Version 4.6.0

Published by zvirja almost 6 years ago

New features:

  • Add With() extension method overload taking factory method (#1084).
AutoFixture - Version 4.5.1

Published by zvirja almost 6 years ago

Improvements and fixes:

  • Improve type generation for idioms guard clause assertion (#1081, thanks @frblondin).
AutoFixture - Version 4.5.0

Published by zvirja over 6 years ago

New features:

  • Generate non-typed expressions (LambdaExpression type) (thanks @bordecal).
  • Introduce UnwrapMemberRequest builder. See motivation in #1055.
  • Introduce ToCustomization() extension. See motivation in #1056.

Improvements and fixes:

  • Better deferred method detection approach in Idioms.
  • Don't fail when [MinLength] attribute is specified only for arrays (thanks @Pvlerick).
  • Deprecate redundant customizations.
AutoFixture - Version 4.4.0

Published by zvirja over 6 years ago

New features:

  • Added auto-configured mode for the FakeItEasy integration (thanks @blairconrad) 🎉
  • Range annotation attribute now supports TimeSpan (thanks @damian-krychowski)
  • Now support MinLength and MaxLength data annotation attributes (thanks again @damian-krychowski)
AutoFixture - Version 4.3.0

Published by zvirja over 6 years ago

Improvements:

  • Use Fare library as a dependency, instead of embedding it locally (#938).
  • Support email generation by targeting netstardard2.0 directly (#993).
  • Fail with better exception if guard clause is present, but contains invalid parameter name (#1010).
AutoFixture - Version 4.2.1

Published by zvirja over 6 years ago

A couple of bug fixes:

  • [Moq] Fix cannot set inherited writable properties when configured customization mode is used (thanks to @karoldeland).
  • Fail with valid ArgumentNullException when Fixture is initialized with null engineParts argument.
AutoFixture - Version 4.2.0

Published by zvirja over 6 years ago

Added option to generate delegates via the mock library for the following integrations:

  • Moq
  • NSubstitute
  • FakeItEasy

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!

AutoFixture - Version 4.1.0

Published by zvirja over 6 years ago

Improved support for the common .NET collection interfaces:

  • Added support for IReadOnlyDictionary<,> and ISet<>.
  • Started to return read-only collection for read-only interface.

Thanks @Kralizek for contribution!

AutoFixture - Version 4.0.1

Published by zvirja over 6 years ago

Make customization expression validation more robust (fixes #970).

AutoFixture - Version 4.0.0

Published by zvirja almost 7 years ago

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:

  • Improve RangeAttribute support to handle non-numeric member types (#920, #722)
  • Add a hint when improper RangeAttribute usage causes arithmetic OverflowException (#453)
  • Improve ObjectCreationException wrapping with full path (#892)
  • Obsolete RandomRangedNumberCustomization (#899)
  • Fix Ranged request fails if request has same min and max (#897)
  • Return ISpecimenBuilderNode in ISpecimenBuilderTransformation.Transform() method (#905)
  • [xUnit/xUnit2] Loosen up InlineAutoDataAttribute constructor to take argument of the DataAttribute type (#911)
  • Allow to relay open generic types via the TypeRelay (#936)
  • Handle open generics by the ExactTypeSpecification and remove redundancies (#935)
  • Change constructor method queries to skip constructors taking arguments of self type (#918)
  • Resolve the IReadOnlyList<> interface out of the box (#924)
  • Move the NoDataAnnotationsCustomization type to the AutoFixture.DataAnnotations namespace (#957)
AutoFixture - Version 4.0.0-rc1

Published by zvirja about 7 years ago

A major release of the AutoFixture product. Refer to the v4.0 Release Notes wiki page to find the change list.

AutoFixture - Version 3.51.0

Published by zvirja about 7 years ago

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).

AutoFixture - Version 3.50.7

Published by zvirja about 7 years ago

Improve performance if there are multiple fixture customizations in a row (#818).

AutoFixture - Version 3.50.6

Published by zvirja about 7 years ago

  • Fix get-only properties are not being setup properly for recent versions of Moq (#788, thanks to @nphmuller and @dcastro).
  • Add information about binding redirection to the AutoFixture.NUnit2 package's readme (#792).
AutoFixture - Version 3.50.5

Published by zvirja about 7 years ago

Improve performance of the fixture customization (#793).

AutoFixture - Version 3.50.4

Published by zvirja about 7 years ago

Fix GuardClauseAssertion returns false positive when applied to abstract methods (#715, thanks to @sergeyshushlyapin).

AutoFixture - Version 3.50.3

Published by zvirja over 7 years ago

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 🎉

AutoFixture - Version 3.50.0

Published by ploeh about 8 years ago

Automatically populates SortedList<,> with data.

Package Rankings
Top 8.17% on Proxy.golang.org
Badges
Extracted from project README
License Build status release NuGet version NuGet preview version NuGet NuGet NuGet NuGet NuGet NuGet NuGet NuGet NuGet NuGet NuGet NuGet NuGet NuGet NuGet NuGet NuGet NuGet NuGet NuGet NuGet NuGet NuGet NuGet
Related Projects