Release 1.7.0

Rating:        Based on 2 ratings
Reviewed:  2 reviews
Downloads: 526
Change Set: 72271
Released: Jan 13 2012
Updated: Jan 13 2012 by dennisdoomen
Dev status: Stable

Recommended Download

Application FluentAssertions1.7.0.zip
application, 400K, uploaded Jan 13 - 526 downloads

Release Notes

What's New
  • 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.

Bug Fixes & Improvements
  • 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.

Reviews for this release

     
Works well, very simple and powerful.
by jvrobert on Jan 30 at 9:25 PM
     
Wow, just wow. This makes it real easy to test things the "way" that they should be. It is also helpful for naming your tests based on your asserts. Love it!
by rickrat on Jan 16 at 9:55 PM