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.

Install-Package FluentAssertions -Version 1.7.0
dotnet add package FluentAssertions --version 1.7.0

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
4.19.3 101,504 7/4/2017
4.19.2 460,609 3/8/2017
4.19.0 154,792 2/4/2017
4.18.0 332,528 12/4/2016
4.17.0 114,404 11/9/2016
4.16.0 81,148 10/26/2016
4.15.0 72,579 10/11/2016
4.14.0 192,854 9/5/2016
4.13.1 26,457 9/1/2016
4.13.0 140,041 8/2/2016
4.12.0 105,613 7/15/2016
4.11.0 61,444 7/6/2016
4.10.0 7,406 7/5/2016
4.9.1 51,332 6/23/2016
4.9.0 51,438 6/13/2016
4.8.0 23,599 6/7/2016
4.7.0 17,364 6/6/2016
4.6.3 98,909 5/24/2016
4.6.2 32,370 5/22/2016
4.6.1 40,840 5/13/2016
4.5.0 74,890 4/25/2016
4.4.0 55,294 4/17/2016
4.3.2 45,484 4/3/2016
4.3.1 1,720 4/1/2016
4.3.0 11,588 3/31/2016
4.2.2 223,250 2/5/2016
4.2.1 117,613 1/10/2016
4.2.0 6,637 1/8/2016
4.1.1 89,125 12/13/2015
4.1.0 111,142 11/24/2015
4.0.1 96,721 10/21/2015
4.0.0 233,875 8/24/2015
4.0.0-beta0001 1,239 8/7/2015
3.5.0 56,098 8/2/2015
3.4.1 80,185 7/3/2015
3.4.0 32,386 6/22/2015
3.3.0 272,151 2/18/2015
3.2.2 135,084 12/12/2014
3.2.1 134,012 9/11/2014
3.1.229 60,743 7/29/2014
3.0.107 96,519 4/30/2014
2.2.0 211,161 12/30/2013
2.1.0 127,013 8/23/2013
2.0.1 127,083 3/3/2013
2.0.0.1 75,018 10/15/2012
1.7.1.1 41,062 3/24/2012
1.7.0 (current version) 6,580 1/13/2012
1.6.0 4,759 10/31/2011
1.5.0 4,868 6/29/2011
1.4.0 2,287 3/14/2011
1.3.0.1 3,632 1/15/2011
Show less