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-beta0003 1,526 10/4/2017
5.0.0-beta0002 4,103 9/18/2017
5.0.0-beta0001 4,503 8/25/2017
4.19.4 143,074 8/24/2017
4.19.3 237,074 7/4/2017
4.19.2 636,105 3/8/2017
4.19.0 192,880 2/4/2017
4.18.0 385,816 12/4/2016
4.17.0 132,627 11/9/2016
4.16.0 93,685 10/26/2016
4.15.0 80,804 10/11/2016
4.14.0 219,548 9/5/2016
4.13.1 30,182 9/1/2016
4.13.0 151,851 8/2/2016
4.12.0 114,704 7/15/2016
4.11.0 67,412 7/6/2016
4.10.0 7,787 7/5/2016
4.9.1 59,237 6/23/2016
4.9.0 54,107 6/13/2016
4.8.0 24,790 6/7/2016
4.7.0 18,624 6/6/2016
4.6.3 105,401 5/24/2016
4.6.2 33,214 5/22/2016
4.6.1 43,122 5/13/2016
4.5.0 81,874 4/25/2016
4.4.0 58,303 4/17/2016
4.3.2 48,142 4/3/2016
4.3.1 1,786 4/1/2016
4.3.0 12,346 3/31/2016
4.2.2 235,226 2/5/2016
4.2.1 124,058 1/10/2016
4.2.0 7,417 1/8/2016
4.1.1 93,091 12/13/2015
4.1.0 117,250 11/24/2015
4.0.1 102,554 10/21/2015
4.0.0 242,897 8/24/2015
4.0.0-beta0001 1,264 8/7/2015
3.5.0 61,877 8/2/2015
3.4.1 88,050 7/3/2015
3.4.0 33,942 6/22/2015
3.3.0 292,209 2/18/2015
3.2.2 140,169 12/12/2014
3.2.1 139,221 9/11/2014
3.1.229 64,710 7/29/2014
3.0.107 101,845 4/30/2014
2.2.0 221,774 12/30/2013
2.1.0 130,359 8/23/2013
2.0.1 131,075 3/3/2013
2.0.0.1 75,796 10/15/2012
1.7.1.1 42,016 3/24/2012
1.7.0 (current version) 6,630 1/13/2012
1.6.0 4,831 10/31/2011
1.5.0 4,943 6/29/2011
1.4.0 2,323 3/14/2011
1.3.0.1 6,006 1/15/2011
Show less