Skip to content

Releases: fluentassertions/fluentassertions

8.5.0

11 Jul 10:27
Compare
Choose a tag to compare

What's Changed

New features

  • Extended BeEquivalentTo with support for checking the type of the properties by @dennisdoomen in #3066

Fixes

  • Ensured WithTracing is safe when used with BeEquivalentTo globally by @dennisdoomen in #3067

Others

Full Changelog: 8.4.0...8.5.0

8.4.0

25 Jun 05:02
cc607f1
Compare
Choose a tag to compare

What's Changed

Improvements

  • Allow excluding properties by name anywhere in the graph by @dennisdoomen in #3062
  • Added Should().Throw(), ThrowAsync() and ThrowWithinAsync() flavors that don’t require a specific exception type by @Xceed-DelvaJB in #3059

Others

New Contributors

Full Changelog: 8.3.0...8.4.0

8.3.0

25 May 11:20
Compare
Choose a tag to compare

What's Changed

Improvements

  • Improve rendering of exception messages when using WithMessage by @dennisdoomen in #3039
  • Clarify the date/time type when comparing dates, times and combinations of those by @dennisdoomen in #3049

Others

Full Changelog: 8.2.0...8.3.0

8.2.0

14 Mar 17:32
Compare
Choose a tag to compare

What's Changed

Improvements

Fixes

Others

Full Changelog: 8.1.1...8.2.0

8.1.1

21 Feb 15:15
Compare
Choose a tag to compare

What's Changed

Fixes

  • Fix a formatting exception when {} is used as a dictionary key. by @dennisdoomen in #3029
  • Removed the PS script that opens the FA website because it misbehaves. by @dennisdoomen in #3030

Full Changelog: 8.1.0...8.1.1

8.1.0

20 Feb 21:25
af8910f
Compare
Choose a tag to compare

What's Changed

Improvements

  • Add [NotNull] attribute on the Should() method for object assertions by @0xced in #2987
  • Improves the subject identification for chained assertions and those that use Which by @dennisdoomen in #3000

Fixes

  • Fixed a regression in which CompleteWithinAsync treated a canceled task as an exception by @dennisdoomen in #2853

Documentation

Others

New Contributors

Full Changelog: 8.0.1...8.1.0

7.2.0

20 Feb 14:55
Compare
Choose a tag to compare

What's Changed

Improvements

  • Improve failure message for string assertions when checking for equality by @vbreuss in #2972
  • Add [NotNull] attribute on the Should() method for object assertions by @0xced in #2987

Fixes

  • Fixed a regression in which CompleteWithinAsync treated a canceled task as an exception by @dennisdoomen in #2853

Others

Full Changelog: 7.1.0...7.2.0

8.0.1

21 Jan 13:56
Compare
Choose a tag to compare

What's Changed

Improvements

  • Provide a toggle to suppress the soft warning about commercial use by @dennisdoomen in #2984

Others

Full Changelog: 8.0.0...8.0.1

7.1.0

17 Jan 06:51
Compare
Choose a tag to compare

What's Changed

Improvements

Others

Full Changelog: 7.0.0...7.1.0

8.0.0

14 Jan 11:54
901c8fa
Compare
Choose a tag to compare

What's Changed

License change

Breaking Changes

New features

Improvements

  • Optimize TypeMemberReflector by @jnyrup in #2320
  • Improve failure message for string assertions when checking for equality by @vbreuss in #2307
  • Capitalize true and false in failure messages by @BusHero in #2390
  • Pass Boolean literals as becauseArguments by @jnyrup in #2393
  • BeEmpty() materializes IEnumerable only once, even on failure by @louis-z in #2530
  • Add [NotNull] attribute on the Should() method for object assertions by @0xced in #2380
  • Allow nested AssertionScopes to chain their context by @dennisdoomen in #2607
  • Avoid allocations when chaining contexts by @jnyrup in #2613
  • Add option to ignore newline style when comparing strings for equivalency by @vbreuss in #2565
  • Add [StringSyntax("CompositeFormat")] to all because parameters by @psychotoad in #2635
  • Add support for Satisfy on ReferenceTypeAssertions by @siewers in #2597
  • Filter the list of events returned by RaisePropertyChangeFor by @arocheleau in #2677
  • Add a bunch of assertions on XElement and XDocument by @ITaluone in #2690
  • Correctly specify nullability of Subject for NumericAssertions by @vbreuss in #2473

Fixes

  • Fixed formatting error when checking nullable DateTimeOffset with BeWithin/Before by @rokklobster in #2312
  • Ensure explicitly implemented members are discoverable in BeEquivalentTo by @dennisdoomen in #2152
  • Pass down the reason to inner AssertionScope by @IT-VBFK in #2318
  • Handle comparing an IDictionary subject with an IDictionary<,> expectation by @ITaluone in #2358
  • Pass FormattingOptions to inner AssertionScope by @ITaluone in #2329
  • Improve failure message for NotBeOfType and BeReadable/BeWritable by @jnyrup in #2399
  • Do not continue asserting on the concrete exception type when the exception is null by @IT-VBFK in #2398
  • Guard methods against assertion scope [Not]HaveExplicit(Property|Method) by @IT-VBFK in #2403
  • Exclude private protected members from BeEquivalentTo by @jnyrup in #2417
  • Fix issue when an empty ArraySegment is a member of a class by @ITaluone in #2511
  • Correct null handling when using a custom comparer by @MartinDemberger in #2489
  • Avoid treating "\\r\\n" as new line. by @vbreuss in #2569
  • Make ThrowWithinAsync respect canceled tasks by @jnyrup in #2614
  • Fixed BeEquivalentTo when using a custom comparer targeting nullable types by @arocheleau in #2648
  • Remove non-compliant StringSyntaxAttribute by @IT-VBFK in #2669
  • Do not use UsingLineBreaks for [Not]BeSameAs by @jnyrup in #2726
  • Properly report the path even if custom mapping is used by @dennisdoomen in #2860
  • GlobalConfiguration.TestFramework did not reconfigure the run-time test framework being used. by @dennisdoomen in #2918
  • GlobalEquivalencyOptions.CloneDefaults needs to be public by @dennisdoomen in #2926

Documentation

Read more