Release 1.6.0

Rating:        Based on 2 ratings
Reviewed:  1 review
Downloads: 368
Change Set: 70802
Released: Oct 31, 2011
Updated: Oct 31, 2011 by dennisdoomen
Dev status: Stable Help Icon

Recommended Download

Application FluentAssertions1.6.0.zip
application, 373K, uploaded Oct 29, 2011 - 368 downloads

Release Notes

Changes
  • Added And() extension method to TimeSpanConversionExtensions to support 4.Hours().And(30.Minutes()).
  • Added more TimeSpan extensions to fluently create a TimeSpan like 23.Hours(59.Minutes()).And(20.Seconds()).
  • Added support for Mspec as contributed by Urs Enzler.
  • Added support for the ComparisonMode to assert inner exception messages as well. Also added ComparisonMode Equivalent and EquivalentSubstring to assert that the message of an (inner) exception matches a certain case-insensitive phrase.
  • Added Guid assertions like Be(), NotBe(), BeEmpty() and NotBeEmpty().
  • Added support for recursively comparing the properties of nested objects using ShouldHave().AllProperties().IncludingNestedObjects().EqualTo().
  • Added Type and MethodInfo assertions for asserting class members are virtual or decorated with specific attributes.
  • Added Before and After extensions methods for TimeSpans .
  • Added Should().Be() and NotBe() extensions to the TypeAssertions.
  • Added PDB files to the release build as another contribution by Urs Enzler.
  • Added the name of the property to the ShouldFirePropertyChanged extension method failure message, also contributed by Urs Enzler.
  • Added missing comments to some of the assertion classes.

Bug Fixes
  • Fixed a stack overflow exception due to a recursive call between the various overloads of floating point extension method BeApproximately()
  • While comparing two collections for equality, FA didn't check any superfluous items in the expected collection.
  • Boolean assertions did not properly check against null values.
  • Fixed a stack overflow exception while creating a displayable representation of an object that contains circular references.
  • Fixed some potential memory leaks fix in MonitorEvents() using a patch provided by Remo Gloor.
  • Sometimes the wrong name of a the property or type was reported in a failure message.
  • ShouldHave().AllProperties().EqualTo() sometimes treated two objects that are functional equivalent according to their Equals() override as different, simply because they were not of the same type.
  • Fixed the detection of collection items that appear in the wrong order in Should().ContainInOrder().

Reviews for this release

     
Fantastic library! Very useful. Simple to use, lightweight - the error messages are wonderful.
by 935main on Nov 14, 2011 at 6:29 PM