Skip to content

Releases: fluentassertions/fluentassertions

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

8.0.0-rc.2

05 Jan 13:06
Compare
Choose a tag to compare
8.0.0-rc.2 Pre-release
Pre-release

What's Changed

Fixes

Others

Full Changelog: 8.0.0-rc.1...8.0.0-rc.2

8.0.0-rc.1

05 Jan 10:15
Compare
Choose a tag to compare
8.0.0-rc.1 Pre-release
Pre-release

What's Changed

Breaking Changes

  • Renamed RespectingRuntimeTypes and RespectingDeclaredTypes to better clarify their purpose by @dennisdoomen in #2866
  • Renamed ExcludingNestedObjects to WithoutRecursing to better describe its purpose by @dennisdoomen in #2876
  • Remove support for HttpResponseMessage assertions by @ITaluone in #2909
  • Redesign Configuration, Services and AssertionOptions by @dennisdoomen in #2901

Fixes

  • 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

Documentation

  • Remove release notes from 8.0.0 that were backported to 6.12.x or 7.0.0 by @jnyrup in #2908

Others

Full Changelog: 8.0.0-alpha.1...8.0.0-rc.1

8.0.0-alpha.1

02 Dec 19:03
c14f48b
Compare
Choose a tag to compare
8.0.0-alpha.1 Pre-release
Pre-release

What's Changed

Others

Full Changelog: 7.0.0-alpha.6...8.0.0-alpha.1

7.0.0

01 Dec 14:11
Compare
Choose a tag to compare

What's Changed

Breaking Changes

Fixes

  • The expectation node identified as a cyclic reference is still compared to the subject node using simple equality. by @dennisdoomen in #2819
  • Fix support for write-only properties in BeEquivalentTo by @dennisdoomen in #2836

Documentation

  • Fix minor syntax error in objectgraphs.md by @rklec in #2847

Others

New Contributors

Full Changelog: 6.12.2...7.0.0

6.12.2

08 Nov 12:09
c6cd85c
Compare
Choose a tag to compare

What's Changed

Others

  • Better support for default interface and explicitly implemented properties by @dennisdoomen in #2794

Full Changelog: 6.12.1...6.12.2

6.12.1

09 Sep 14:04
Compare
Choose a tag to compare

What's Changed

Improvements

  • Improve BeEmpty() and BeNullOrEmpty() performance for IEnumerable<T>, by materializing only the first item - #2530

Fixes

  • Fixed formatting error when checking nullable DateTimeOffset with BeWithin(...).Before(...) - #2312
  • BeEquivalentTo will now find and can map subject properties that are implemented through an explicitly-implemented interface - #2152
  • Fixed that the because and becauseArgs were not passed down the equivalency tree - #2318
  • BeEquivalentTo can again compare a non-generic IDictionary with a generic one - #2358
  • Fixed that the FormattingOptions were not respected in inner AssertionScope - #2329
  • Capitalize true and false in failure messages and make them formattable to a custom BooleanFormatter - #2390, #2393
  • Improved the failure message for NotBeOfType when wrapped in an AssertionScope and the subject is null - #2399
  • Improved the failure message for BeWritable/BeReadable when wrapped in an AssertionScope and the subject is read-only/write-only - #2399
  • Improved the failure message for ThrowExactly[Async] when wrapped in an AssertionScope and no exception is thrown - #2398
  • Improved the failure message for [Not]HaveExplicitProperty when wrapped in an AssertionScope and not implementing the interface - #2403
  • Improved the failure message for [Not]HaveExplicitMethod when wrapped in an AssertionScope and not implementing the interface - #2403
  • Changed BeEquivalentTo to exclude private protected members from the comparison - #2417
  • Fixed using BeEquivalentTo on an empty ArraySegment - #2445, #2511
  • BeEquivalentTo with a custom comparer can now handle null values - #2489
  • Ensured that nested calls to AssertionScope(context) create a chained context - #2607
  • One overload of the AssertionScope constructor would not create an actual scope associated with the thread - #2607
  • Fixed ThrowWithinAsync not respecting OperationCanceledException - #2614
  • Fixed using BeEquivalentTo with an IEqualityComparer targeting nullable types - #2648

Full Changelog: 6.12.0...6.12.1

6.12.0

23 Aug 10:53
340af80
Compare
Choose a tag to compare

What's Changed

New features

  • Added Be, NotBe and BeOneOf for object comparisons with custom comparer by @jnyrup in #2243
  • Extend AssemblyAssertions with HavePublicKey and BeUnsigned by @Corniel in #2207
  • Add NotContainItemsAssignableTo by @Leo506 in #2266

Improvements

  • Format records and anonymous types with their member values by @benagain in #2144
  • Improve caller identification for Visual Basic by @jnyrup in #2254

Fixes

  • Avoid quoting newlines by @jnyrup in #2202
  • Include because+becauseArgs when comparing collections of enums for equivalency by @jnyrup in #2214
  • Fix auto conversion to enums by @jnyrup in #2261

Documentation

Others

New Contributors

Full Changelog: 6.11.0...6.12.0