github fluentassertions/fluentassertions 8.0.0

one day ago

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

Others

New Contributors

Full Changelog: 7.0.0...8.0.0

Don't miss a new fluentassertions release

NewReleases is sending notifications on new releases.