FluentAssertions 1.7.0

.NET Framework 3.5
There is a newer version of this package available.
See the version list below for details.
NuGet\Install-Package FluentAssertions -Version 1.7.0
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.
dotnet add package FluentAssertions --version 1.7.0
<PackageReference Include="FluentAssertions" Version="1.7.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FluentAssertions --version 1.7.0
#r "nuget: FluentAssertions, 1.7.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install FluentAssertions as a Cake Addin
#addin nuget:?package=FluentAssertions&version=1.7.0

// Install FluentAssertions as a Cake Tool
#tool nuget:?package=FluentAssertions&version=1.7.0

A very extensive set of extension methods for .NET 3.5, 4.0 and Silverlight 4.0 that allow you to more naturally specify the expected outcome of a TDD or BDD-style unit test.

Product Versions
.NET Framework net35 net40 net403 net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
Silverlight sl4 sl5
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (383)

Showing the top 5 NuGet packages that depend on FluentAssertions:

Package Downloads
FluentAssertions.Json The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Fluent Assertions extensions for Newtonsoft.Json

Akka.TestKit

You need a Akka.TestKit.* package! Add the one appropriate for the test framework you use instead. For example: Akka.TestKit.Xunit or Akka.TestKit.VsTest. This package only contains base functionality for writing tests for the Akka.NET framework.

FluentValidation.Validators.UnitTestExtension

A unit test library for .NET that allows you to build tests for FluentValidation rules in easy way.

VirtoCommerce.SearchModule.Core

Package Description

FluentAssertions.AspNetCore.Mvc

Fluent Assertions extensions for ASP.NET Core MVC.

GitHub repositories (566)

Showing the top 5 popular GitHub repositories that depend on FluentAssertions:

Repository Stars
App-vNext/Polly
Polly is a .NET resilience and transient-fault-handling library that allows developers to express policies such as Retry, Circuit Breaker, Timeout, Bulkhead Isolation, and Fallback in a fluent and thread-safe manner. From version 6.0.1, Polly targets .NET Standard 1.1 and 2.0+.
dotnet/runtime
.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
jasontaylordev/CleanArchitecture
Clean Architecture Solution Template for .NET 6
coding-horror/basic-computer-games
An updated version of the classic "Basic Computer Games" book, with well-written examples in a variety of common MEMORY SAFE, SCRIPTING programming languages. See https://coding-horror.github.io/basic-computer-games/
IdentityServer/IdentityServer4
OpenID Connect and OAuth 2.0 Framework for ASP.NET Core
Version Downloads Last updated
6.7.0 6,020,472 5/18/2022
6.6.0 3,485,614 4/3/2022
6.5.1 4,750,941 2/11/2022
6.5.0 130,466 2/10/2022
6.4.0 2,291,471 1/22/2022
6.3.0 2,058,557 1/1/2022
6.2.0 6,940,578 10/25/2021
6.1.0 6,633,119 8/22/2021
6.0.0 1,084,873 8/13/2021
6.0.0-beta0003 14,068 8/11/2021
6.0.0-beta0002 6,626 8/5/2021
6.0.0-beta0001 120,389 6/1/2021
6.0.0-alpha0002 364,105 1/7/2021
6.0.0-alpha0001 411,515 7/24/2020
5.10.3 56,712,755 3/21/2020
5.10.2 5,271,977 2/9/2020
5.10.0 4,519,838 1/2/2020
5.9.0 10,943,588 8/28/2019
5.8.0 1,628,901 8/9/2019
5.7.0 6,468,178 6/8/2019
5.6.0 11,176,159 1/11/2019
5.5.3 3,150,607 11/20/2018
5.5.1 249,418 11/16/2018
5.4.2 3,318,871 9/14/2018
5.4.1 4,796,550 6/20/2018
5.4.0 512,565 6/13/2018
5.3.2 769,692 5/30/2018
5.3.0 2,084,954 4/19/2018
5.2.0 1,498,049 3/15/2018
5.1.2 1,138,909 2/19/2018
5.1.1 194,167 2/14/2018
5.0.0 1,484,405 2/4/2018
4.19.4 7,494,728 8/24/2017
4.19.3 1,529,444 7/4/2017
4.19.2 3,664,714 3/8/2017
4.19.0 1,308,744 2/4/2017
4.18.0 1,790,458 12/4/2016
4.17.0 812,053 11/9/2016
4.16.0 327,856 10/26/2016
4.15.0 289,586 10/11/2016
4.14.0 925,332 9/5/2016
4.13.1 97,955 9/1/2016
4.13.0 459,533 8/2/2016
4.12.0 815,320 7/15/2016
4.11.0 245,656 7/6/2016
4.10.0 21,910 7/5/2016
4.9.1 230,915 6/23/2016
4.9.0 175,068 6/13/2016
4.8.0 85,833 6/7/2016
4.7.0 59,573 6/6/2016
4.6.3 326,348 5/24/2016
4.6.2 44,084 5/22/2016
4.6.1 135,312 5/13/2016
4.5.0 283,683 4/25/2016
4.4.0 190,896 4/17/2016
4.3.2 89,136 4/3/2016
4.3.1 5,461 4/1/2016
4.3.0 73,920 3/31/2016
4.2.2 630,892 2/5/2016
4.2.1 346,952 1/10/2016
4.2.0 211,228 1/8/2016
4.1.1 168,206 12/13/2015
4.1.0 358,504 11/24/2015
4.0.1 393,718 10/21/2015
4.0.0 548,682 8/24/2015
4.0.0-beta0001 3,263 8/7/2015
3.5.0 338,791 8/2/2015
3.4.1 317,664 7/3/2015
3.4.0 113,826 6/22/2015
3.3.0 873,939 2/18/2015
3.2.2 250,292 12/12/2014
3.2.1 424,989 9/11/2014
3.1.229 238,205 7/29/2014
3.0.107 349,421 4/30/2014
2.2.0 647,755 12/30/2013
2.1.0 262,109 8/23/2013
2.0.1 283,265 3/3/2013
2.0.0.1 123,731 10/15/2012
1.7.1.1 88,475 3/24/2012
1.7.0 10,000 1/13/2012
1.6.0 15,281 10/31/2011
1.5.0 10,587 6/29/2011
1.4.0 5,976 3/14/2011
1.3.0.1 28,940 1/15/2011

- Added methods for asserting that a collection of types matching a predicate have specific methods that are virtual or marked with a specific attribute.
     - Added methods for asserting XElements and Xattributes
     - Added support for recursively comparing the properties of nested (collection of objects ). By default it will compare all properties of the expected object graph, unless SharedProperties is used.
     - Added a fallback mechanism so that if FA cannot find any of the supported frameworks, it will fall back to using a custom AssertFailedException exception class rather than crashing.
     - Added support for ComparisonMode.StartWith and ComparisonMode.StartWithEquivalent when asserting the message of an exception.
     - For assertions that verify against a Type, the failure message will use the AssemblyQualifiedName rather than just the name of the type.
     - Fixed a bug so that collection.Should().OnlyContain(lamba) now throws if the collection is empty. See this discussion for more details.
     - Minor fix that ignores trailing blank characters when looking for the 'because' text in the reason of an assertion.
     - Added better and deeper detection of cyclic references when recursively comparing properties or generating a string representation of a complex object graph.
     - For long strings, the error message for string.Should().StartWith() places the actual and expected strings on seperate lines. This makes it easier to find the differences.