AutoFixture 4.18.1

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package AutoFixture --version 4.18.1
                    
NuGet\Install-Package AutoFixture -Version 4.18.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AutoFixture" Version="4.18.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AutoFixture" Version="4.18.1" />
                    
Directory.Packages.props
<PackageReference Include="AutoFixture" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AutoFixture --version 4.18.1
                    
#r "nuget: AutoFixture, 4.18.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AutoFixture@4.18.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AutoFixture&version=4.18.1
                    
Install as a Cake Addin
#tool nuget:?package=AutoFixture&version=4.18.1
                    
Install as a Cake Tool

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.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.5 is compatible.  netstandard1.6 was computed.  netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net452 is compatible.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (280)

Showing the top 5 NuGet packages that depend on AutoFixture:

Package Downloads
AutoFixture.AutoMoq

This extension turns AutoFixture into an Auto-Mocking Container. The mock instances are created by Moq. To use it, add the AutoMoqCustomization to your Fixture instance. Read more at http://blog.ploeh.dk/2010/08/19/AutoFixtureAsAnAutomockingContainer.aspx

AutoFixture.Xunit2

By leveraging the data theory feature of xUnit.net, this extension turns AutoFixture into a declarative framework for writing unit tests. In many ways it becomes a unit testing DSL (Domain Specific Language).

AutoFixture.AutoNSubstitute

This extension turns AutoFixture into an Auto-Mocking Container. The mock instances are created by NSubstitute. To use it, add the AutoNSubstituteCustomization to your Fixture instance.

AutoFixture.NUnit3

By leveraging some features of NUnit3, this extension turns AutoFixture into a declarative framework for writing unit tests. In many ways it becomes a unit testing DSL (Domain Specific Language).

AutoFixture.Idioms

Ubiquitous use of AutoFixture for unit testing has given rise to a number of idiomatic unit tests - unit tests that tend to follow common templates. The AutoFixture Idioms library encapsulates these idioms into reusable classes and methods.

GitHub repositories (114)

Showing the top 20 popular GitHub repositories that depend on AutoFixture:

Repository Stars
jellyfin/jellyfin
The Free Software Media System - Server Backend & API
restsharp/RestSharp
Simple REST and HTTP API Client for .NET
felixse/FluentTerminal
A Terminal Emulator based on UWP and web technologies.
reactiveui/refit
The automatic type-safe REST library for .NET Core, Xamarin and .NET. Heavily inspired by Square's Retrofit library, Refit turns your REST API into a live interface.
Lidarr/Lidarr
Looks and smells like Sonarr but made for music.
microsoft/RulesEngine
A fast and reliable .NET Rules Engine with extensive Dynamic expression support
Ombi-app/Ombi
Want a Movie or TV Show on Plex/Emby/Jellyfin? Use Ombi!
thomhurst/TUnit
A modern, fast and flexible .NET testing framework
Readarr/Readarr
Book Manager and Automation (Sonarr for Ebooks)
dotnet/extensions
This repository contains a suite of libraries that provide facilities commonly needed when creating production-ready applications.
ONLYOFFICE/CommunityServer
Free open source office suite with business productivity tools: document and project management, CRM, mail aggregator.
ardalis/SmartEnum
A base class for quickly and easily creating strongly typed enum replacements in C#.
Glimpse/Glimpse
The open source diagnostics platform for the web
jwt-dotnet/jwt
Jwt.Net, a JWT (JSON Web Token) implementation for .NET
dahall/Vanara
A set of .NET libraries for Windows implementing PInvoke calls to many native Windows APIs with supporting wrappers.
Nexus-Mods/NexusMods.App
Home of the development of the Nexus Mods App
recyclarr/recyclarr
Automatically sync TRaSH Guides to your Sonarr and Radarr instances
NeutroniumCore/Neutronium
🚀 Build .NET desktop applications using HTML, CSS and javascript.
VirtoCommerce/vc-platform
Virto Commerce B2B Innovation Platform
bUnit-dev/bUnit
bUnit is a testing library for Blazor components that make tests look, feel, and runs like regular unit tests. bUnit makes it easy to render and control a component under test’s life-cycle, pass parameter and inject services into it, trigger event handlers, and verify the rendered markup from the component using a built-in semantic HTML comparer.
Version Downloads Last Updated
5.0.0-preview0012 860,928 1/21/2025
5.0.0-preview0011 1,058,454 4/15/2024
5.0.0-preview0010 50,410 3/25/2024
5.0.0-preview0009 27,912 3/10/2024
5.0.0-preview0008 84,634 2/18/2024
5.0.0-preview0007 139,719 12/9/2023
5.0.0-preview0006 22,063 12/4/2023
5.0.0-dataattributes0001 30,822 12/27/2023
4.18.1 60,919,906 11/28/2023
4.18.0 28,174,475 2/21/2023
4.17.0 68,456,656 4/20/2021
4.16.0 1,436,191 4/1/2021
4.15.0 8,856,634 12/18/2020
4.14.0 7,836,343 9/10/2020
4.13.0 4,272,359 7/9/2020
4.12.0 954,820 6/28/2020
4.11.0 20,935,165 7/8/2019
4.10.0 1,051,753 6/13/2019
4.9.0 642,206 5/28/2019
4.8.0 5,502,983 1/30/2019
4.7.0 244,183 1/26/2019
4.6.0 2,362,764 12/10/2018
4.5.1 755,885 11/25/2018
4.5.0 5,448,439 7/12/2018
4.4.0 1,722,149 5/26/2018
4.3.0 1,000,578 5/2/2018
4.2.1 465,159 4/16/2018
4.2.0 673,991 3/21/2018
4.1.0 865,665 2/15/2018
4.0.1 1,355,693 1/22/2018
4.0.0 629,883 1/10/2018
4.0.0-rc1 224,230 10/18/2017
3.51.0 3,127,523 10/5/2017
3.50.7 396,494 9/18/2017
3.50.6 542,948 8/16/2017
3.50.5 158,404 8/9/2017
3.50.4 43,317 8/7/2017
3.50.3 786,529 7/5/2017
3.50.2 4,522,177 8/31/2016
3.50.1 187,391 8/12/2016
3.50.0 41,031 8/11/2016
3.49.1 117,882 8/3/2016
3.49.0 306,853 7/5/2016
3.48.0 80,895 6/28/2016
3.47.8 66,368 6/19/2016
3.47.7 12,201 6/18/2016
3.47.6 42,515 6/13/2016
3.47.5 26,660 6/11/2016
3.47.4 54,328 6/3/2016
3.47.3 42,048 6/2/2016
3.47.2 14,890 6/2/2016
3.47.1 51,395 6/1/2016
3.47.0 12,815 5/31/2016
3.46.0 262,823 5/15/2016
3.45.3 27,271 5/12/2016
3.45.2 32,831 5/7/2016
3.45.1 117,926 4/25/2016
3.45.0 13,405 4/24/2016
3.44.1 84,133 4/20/2016
3.44.0 53,563 4/15/2016
3.43.4 21,995 4/14/2016
3.43.3 11,121 4/13/2016
3.43.2 34,508 4/12/2016
3.43.1 14,702 4/10/2016
3.43.0 76,055 3/28/2016
3.42.0 92,198 3/20/2016
3.41.1 41,507 3/13/2016
3.41.0 14,734 3/12/2016
3.40.0 244,105 2/2/2016
3.39.0 52,162 1/22/2016
3.38.1 225,392 1/3/2016
3.38.0 11,956 12/31/2015
3.37.3 109,253 12/8/2015
3.37.2 10,810 12/8/2015
3.37.1 28,465 12/3/2015
3.37.0 40,083 11/25/2015
3.36.12 37,079 11/20/2015
3.36.11 66,979 11/16/2015
3.36.9 265,201 10/21/2015
3.36.8 123,966 10/8/2015
3.36.7 4,399 10/8/2015
3.36.6 9,861 10/7/2015
3.36.5 5,425 10/7/2015
3.36.4 5,215 10/7/2015
3.36.3 4,337 10/7/2015
3.36.2 5,749 10/7/2015
3.36.1 26,599 10/6/2015
3.36.0 22,165 10/2/2015
3.35.1 11,110 10/2/2015
3.35.0 5,854 10/2/2015
3.34.2 59,710 9/16/2015
3.34.1 12,903 9/16/2015
3.34.0 24,892 9/12/2015
3.33.0 25,409 9/5/2015
3.32.2 11,070 9/5/2015
3.32.0 14,659 9/5/2015
3.31.3 160,359 8/5/2015
3.31.2 7,841 8/5/2015
3.31.1 31,704 8/2/2015
3.31.0 25,295 7/31/2015
3.30.8 209,630 6/17/2015
3.30.7 31,434 6/14/2015
3.30.6 73,670 6/5/2015
3.30.5 68,493 5/16/2015
3.30.4 58,734 4/29/2015
3.30.3 47,752 4/19/2015
3.30.2 69,558 4/11/2015
3.30.1 16,091 4/10/2015
3.30.0 228,230 4/9/2015
3.29.0 10,950 4/9/2015
3.28.0 5,657 4/8/2015
3.27.0 10,839 4/8/2015
3.26.0 5,258 4/8/2015
3.25.0 34,031 4/8/2015
3.24.6 10,487 4/7/2015
3.24.5 28,282 4/6/2015
3.24.4 9,883 4/4/2015
3.24.3 109,039 3/12/2015
3.24.2 30,644 3/7/2015
3.24.1 26,084 2/28/2015
3.24.0 27,852 2/19/2015
3.23.2 10,801 2/18/2015
3.23.1 40,879 2/4/2015
3.23.0 22,428 1/27/2015
3.22.0 94,651 12/21/2014
3.21.1 53,503 11/13/2014
3.21.0 64,890 10/20/2014
3.20.4 19,201 10/15/2014
3.20.2 97,795 9/16/2014
3.20.1 31,733 9/7/2014
3.20.0 206,520 8/20/2014
3.19.2 60,989 8/5/2014
3.19.1 84,473 6/19/2014
3.19.0 21,240 6/12/2014
3.18.10 29,809 6/5/2014
3.18.9 11,579 6/1/2014
3.18.8 26,983 5/24/2014
3.18.7 41,269 5/17/2014
3.18.6 14,039 5/6/2014
3.18.5 28,617 4/25/2014
3.18.4 20,559 4/24/2014
3.18.3 16,356 4/13/2014
3.18.2 9,774 4/12/2014
3.18.1 92,845 3/29/2014
3.18.0 14,673 3/23/2014
3.17.0 16,460 3/15/2014
3.16.10 12,484 3/10/2014
3.16.9 9,499 3/9/2014
3.16.8 9,021 3/9/2014
3.16.7 15,113 3/8/2014
3.16.6 30,035 3/2/2014
3.16.5 100,585 1/31/2014
3.16.4 48,298 1/2/2014
3.16.3 15,052 12/22/2013
3.16.2 9,026 12/21/2013
3.16.1 17,620 12/5/2013
3.16.0 12,743 11/30/2013
3.15.1 13,275 11/26/2013
3.15.0 35,726 11/24/2013
3.14.0 9,693 11/23/2013
3.13.0 16,812 11/6/2013
3.12.1 49,281 10/20/2013
3.12.0 10,586 10/15/2013
3.11.0 9,910 10/13/2013
3.10.1 13,357 10/9/2013
3.10.0 20,335 10/8/2013
3.9.1 10,933 10/2/2013
3.9.0 13,321 9/24/2013
3.8.1 9,708 9/23/2013
3.8.0 9,098 9/22/2013
3.7.0 14,098 9/19/2013
3.6.8 26,003 9/6/2013
3.6.7 9,779 8/31/2013
3.6.6 32,659 8/1/2013
3.6.5 14,197 7/22/2013
3.6.4 4,531 7/22/2013
3.6.3 11,053 7/14/2013
3.6.2 9,061 7/13/2013
3.6.1 9,786 7/11/2013
3.6.0 24,931 7/9/2013
3.5.1 11,165 7/2/2013
3.5.0 9,407 7/1/2013
3.4.1 9,648 6/27/2013
3.4.0 10,210 6/24/2013
3.3.0 10,286 6/23/2013
3.2.1 30,967 6/3/2013
3.2.0 9,081 6/1/2013
3.1.0 10,672 5/26/2013
3.0.9 16,777 5/15/2013
3.0.8 39,364 4/9/2013
3.0.7 8,907 4/6/2013
3.0.6 9,052 4/4/2013
3.0.5 9,510 4/2/2013
3.0.3 22,164 3/16/2013
3.0.2 11,429 3/5/2013
3.0.1 155,867 3/1/2013
2.16.2 42,156 1/27/2013
2.16.1 10,211 1/10/2013
2.16.0 13,948 1/6/2013
2.15.6 8,373 1/4/2013
2.15.5 16,296 12/7/2012
2.15.4 9,216 11/30/2012
2.15.3 8,454 11/29/2012
2.15.2 10,255 11/22/2012
2.15.1 8,552 11/21/2012
2.15.0 8,534 11/21/2012
2.14.1 8,925 11/19/2012
2.14.0 8,670 11/14/2012
2.13.5 11,227 11/9/2012
2.13.4 11,778 10/31/2012
2.13.3 16,453 10/9/2012
2.13.0 5,951 10/2/2012
2.12.1 4,924 9/30/2012
2.12.0 32,836 7/28/2012
2.11.4 16,147 7/4/2012
2.11.3 8,319 7/3/2012
2.11.2 8,822 6/24/2012
2.11.1 11,976 5/26/2012
2.11.0 18,351 5/6/2012
2.10.0 26,450 4/10/2012
2.9.2 12,431 3/7/2012
2.9.1 13,427 2/20/2012
2.9.0 8,445 2/19/2012
2.8.0 10,881 1/29/2012
2.7.2 14,500 12/28/2011
2.7.1 8,680 12/16/2011
2.7.0 9,238 12/12/2011
2.6.0 7,349 12/8/2011
2.5.2 7,647 12/8/2011
2.5.1 7,661 12/2/2011
2.5.0 7,650 12/1/2011
2.4.1 16,471 10/1/2011
2.4.0 7,813 9/18/2011
2.3.2 7,751 9/12/2011
2.3.1 7,618 9/11/2011
2.2.45 7,540 9/9/2011
2.2.44 10,940 9/6/2011
2.1.0 8,464 5/4/2011
2.0.0 146,565 2/1/2011