FluentAssertions 1.7.0

Fluent Assertions

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.

There is a newer prerelease version of this package available.
See the version list below for details.
Install-Package FluentAssertions -Version 1.7.0
dotnet add package FluentAssertions --version 1.7.0
paket add FluentAssertions --version 1.7.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

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

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
5.0.0-beta0004 2,998 11/19/2017
5.0.0-beta0003 8,999 10/4/2017
5.0.0-beta0002 8,096 9/18/2017
5.0.0-beta0001 7,193 8/25/2017
4.19.4 408,052 8/24/2017
4.19.3 314,633 7/4/2017
4.19.2 773,277 3/8/2017
4.19.0 224,425 2/4/2017
4.18.0 436,673 12/4/2016
4.17.0 160,272 11/9/2016
4.16.0 104,498 10/26/2016
4.15.0 89,089 10/11/2016
4.14.0 242,311 9/5/2016
4.13.1 33,976 9/1/2016
4.13.0 161,741 8/2/2016
4.12.0 124,743 7/15/2016
4.11.0 72,610 7/6/2016
4.10.0 7,986 7/5/2016
4.9.1 67,617 6/23/2016
4.9.0 56,426 6/13/2016
4.8.0 25,765 6/7/2016
4.7.0 19,749 6/6/2016
4.6.3 109,752 5/24/2016
4.6.2 33,779 5/22/2016
4.6.1 44,640 5/13/2016
4.5.0 90,104 4/25/2016
4.4.0 60,286 4/17/2016
4.3.2 49,822 4/3/2016
4.3.1 1,868 4/1/2016
4.3.0 12,856 3/31/2016
4.2.2 246,241 2/5/2016
4.2.1 129,246 1/10/2016
4.2.0 8,174 1/8/2016
4.1.1 95,645 12/13/2015
4.1.0 122,835 11/24/2015
4.0.1 108,316 10/21/2015
4.0.0 248,969 8/24/2015
4.0.0-beta0001 1,290 8/7/2015
3.5.0 67,231 8/2/2015
3.4.1 95,049 7/3/2015
3.4.0 35,207 6/22/2015
3.3.0 311,535 2/18/2015
3.2.2 143,621 12/12/2014
3.2.1 144,250 9/11/2014
3.1.229 68,960 7/29/2014
3.0.107 106,112 4/30/2014
2.2.0 233,270 12/30/2013
2.1.0 133,826 8/23/2013
2.0.1 134,472 3/3/2013
2.0.0.1 76,460 10/15/2012
1.7.1.1 42,805 3/24/2012
1.7.0 (current version) 6,703 1/13/2012
1.6.0 4,956 10/31/2011
1.5.0 5,008 6/29/2011
1.4.0 2,359 3/14/2011
1.3.0.1 6,629 1/15/2011
Show less