Release notes
*Sourced from [FluentAssertions's releases](https://github.com/fluentassertions/fluentassertions/releases).*
> ## 5.8.0
> [Release Notes](https://fluentassertions.com/releases/[#580](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/580))
>
> ## 5.7.0
> [Release Notes](https://fluentassertions.com/releases/[#570](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/570))
>
> ## 5.6.0
> * {New} Provide opt-out to `AssertionOptions(o => o.WithStrictOrdering())` - [#974](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/974)
> * {New} Add collection assertion `ContainEquivalentOf` - [#950](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/950)
> * {New} Add `Should().NotThrowAfter` assertion for actions - [#942](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/942)
>
> Kudos to [@BrunoJuchli](https://github.com/BrunoJuchli), [@matthiaslischka](https://github.com/matthiaslischka) and [@frederik-h](https://github.com/frederik-h) for these amazing additions.
>
> ## 5.5.3
> * {Fix} Performance fixes in `BeEquivalenTo` - [#935](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/935)
> * {Fix} Reverted 5.5.0 changes to `AssertionScope` to ensure binary compatibility - [#977](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/977)
>
> ## 5.5.2
> * {Fix} Allows `BeEquivalentTo` to handle a non-generic collection as the SUT - [#975](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/975), [#973](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/973)
> * {Fix} Optimized performance of `IncludeMemberByPathSelectionRule` - [#969](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/969)
>
> ## 5.5.1
> * {New} Now provides a hint when strings differ in length and contain differences - [#915](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/915), [#907](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/907)
> * {New} Added `ThrowAsync`, `ThrowExactlyAsync` and `NotThrowAsync` - [#931](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/931)
> * {New} Added support for `Should().Throw` and `Should().NotThrow` for `Func` - [#951](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/951)
> * {New} Added support for `private protected` access modifier - [#932](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/932)
> * {New} Updated `BeApproximately` to support nullable types for both the subject and the expectation nullable - [#934](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/934)
> * {New} Added `async` version of `ExecutionTime` to - [#938](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/938)
> * {New} Updated `NotBeApproximately` to accepting nullable subject and expectation - [#939](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/939)
> * {New} `type.Should().Be(type)` now support open generics - [#954](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/954), [#955](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/955)
> * {Fix} Minor performance improvements to prevent rendering messages if a test did not fail - [#921](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/921), [#915](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/915)
> * {Fix} Improve performance of `Should().AllBeEquivalentTo()` - [#920](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/920), [#914](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/914)
> * {Fix} Improve the presentation of enums to include the value and the number - [#923](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/923), [#897](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/897)
> * {Fix} `BeEquivalentTo` with `WithStrictOrdering` produced messy failure message - [#918](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/918)
> * {Fix} Fixes detecting checking equivalency of a `null` subject to a dictionary - [#933](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/933)
> * {Fix} Fixes duplicate conversions being mentioned in the output of the equivalency API - [#941](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/941)
> * {Fix} Comparing an object graph against `IEnumerable` now works now as expected - [#911](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/911)
> * {Fix} Selecting members during object graph assertions now better handles `new` overrides -[#960](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/960), [#956](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/956)
>
> **Note** In versions prior to 5.5, FA may have skipped certain properties in the equivalency comparison. [#960](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/960) fixes this, so this may cause some breaking changes.
>
> Lots of kudos [@jnyrup](https://github.com/jnyrup) and [@krajek](https://github.com/krajek) for a majority for the work in this release.
>
> ## 5.4.2
> * {Fix} Limits the depth of rendering an object to a max of 5 to prevent OOM exceptions - [#898](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/898)
> * {Fix} Show the entire exception instead of just the message when an `async` function throws - [#892](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/892)
> * {Fix} Fixed a StackOverflow while comparing an self-returning enumerable - [#887](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/887)
> * {Fix} Custom rules (`Using().WhenTypeIs()`) were not executed on dictionary equivalency assertions - [#886](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/886)
> * {Fix} The failure message of `HaveOffset` returned the seconds instead of the offset - [#883](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/883)
>
> ... (truncated)
Commits
- [`070aa6c`](https://github.com/fluentassertions/fluentassertions/commit/070aa6c6c4764171ff83aa22aba259dc40b84b46) Release notes for 5.8 ([#1111](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/1111))
- [`ee7abf8`](https://github.com/fluentassertions/fluentassertions/commit/ee7abf8d32b1c23170fa251399192b5e773df656) Styling ([#1109](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/1109))
- [`77b541b`](https://github.com/fluentassertions/fluentassertions/commit/77b541b92aa3432dbb75233a9397358ca3949ef0) Add global warning ignores
- [`7340a6d`](https://github.com/fluentassertions/fluentassertions/commit/7340a6dd244321ea1c4aee8cf527dcceaf182c07) do not cast return value
- [`f152bc5`](https://github.com/fluentassertions/fluentassertions/commit/f152bc5380b8568ba8157dbed810697c1146ec11) discards
- [`2900eb9`](https://github.com/fluentassertions/fluentassertions/commit/2900eb965181d9e066b76d5884c40c15da0b2aa5) simplify xml docs
- [`06ee162`](https://github.com/fluentassertions/fluentassertions/commit/06ee162d55feae4a83b707a2b5b03557d3a5d962) Remove prefixes from cref
- [`8f09d7a`](https://github.com/fluentassertions/fluentassertions/commit/8f09d7a7f3086a28bc0d44b3aaa9ccca6e8dd056) make private methods static
- [`8cc1651`](https://github.com/fluentassertions/fluentassertions/commit/8cc1651311681683bb8bb5eb2d61576ecb1c6b98) ignore warnings
- [`ce73978`](https://github.com/fluentassertions/fluentassertions/commit/ce739780dd1fcdb4872f6b1b646801fdad9bc449) attribute annotation
- Additional commits viewable in [compare view](https://github.com/fluentassertions/fluentassertions/compare/4.19.3...5.8.0)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Finally, you can contact us by mentioning @dependabot.
Bumps FluentAssertions from 4.19.3 to 5.8.0.
Release notes
*Sourced from [FluentAssertions's releases](https://github.com/fluentassertions/fluentassertions/releases).* > ## 5.8.0 > [Release Notes](https://fluentassertions.com/releases/[#580](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/580)) > > ## 5.7.0 > [Release Notes](https://fluentassertions.com/releases/[#570](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/570)) > > ## 5.6.0 > * {New} Provide opt-out to `AssertionOptions(o => o.WithStrictOrdering())` - [#974](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/974) > * {New} Add collection assertion `ContainEquivalentOf` - [#950](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/950) > * {New} Add `Should().NotThrowAfter` assertion for actions - [#942](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/942) > > Kudos to [@BrunoJuchli](https://github.com/BrunoJuchli), [@matthiaslischka](https://github.com/matthiaslischka) and [@frederik-h](https://github.com/frederik-h) for these amazing additions. > > ## 5.5.3 > * {Fix} Performance fixes in `BeEquivalenTo` - [#935](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/935) > * {Fix} Reverted 5.5.0 changes to `AssertionScope` to ensure binary compatibility - [#977](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/977) > > ## 5.5.2 > * {Fix} Allows `BeEquivalentTo` to handle a non-generic collection as the SUT - [#975](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/975), [#973](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/973) > * {Fix} Optimized performance of `IncludeMemberByPathSelectionRule` - [#969](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/969) > > ## 5.5.1 > * {New} Now provides a hint when strings differ in length and contain differences - [#915](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/915), [#907](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/907) > * {New} Added `ThrowAsync`, `ThrowExactlyAsync` and `NotThrowAsync` - [#931](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/931) > * {New} Added support for `Should().Throw` and `Should().NotThrow` for `FuncCommits
- [`070aa6c`](https://github.com/fluentassertions/fluentassertions/commit/070aa6c6c4764171ff83aa22aba259dc40b84b46) Release notes for 5.8 ([#1111](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/1111)) - [`ee7abf8`](https://github.com/fluentassertions/fluentassertions/commit/ee7abf8d32b1c23170fa251399192b5e773df656) Styling ([#1109](https://github-redirect.dependabot.com/fluentassertions/fluentassertions/issues/1109)) - [`77b541b`](https://github.com/fluentassertions/fluentassertions/commit/77b541b92aa3432dbb75233a9397358ca3949ef0) Add global warning ignores - [`7340a6d`](https://github.com/fluentassertions/fluentassertions/commit/7340a6dd244321ea1c4aee8cf527dcceaf182c07) do not cast return value - [`f152bc5`](https://github.com/fluentassertions/fluentassertions/commit/f152bc5380b8568ba8157dbed810697c1146ec11) discards - [`2900eb9`](https://github.com/fluentassertions/fluentassertions/commit/2900eb965181d9e066b76d5884c40c15da0b2aa5) simplify xml docs - [`06ee162`](https://github.com/fluentassertions/fluentassertions/commit/06ee162d55feae4a83b707a2b5b03557d3a5d962) Remove prefixes from cref - [`8f09d7a`](https://github.com/fluentassertions/fluentassertions/commit/8f09d7a7f3086a28bc0d44b3aaa9ccca6e8dd056) make private methods static - [`8cc1651`](https://github.com/fluentassertions/fluentassertions/commit/8cc1651311681683bb8bb5eb2d61576ecb1c6b98) ignore warnings - [`ce73978`](https://github.com/fluentassertions/fluentassertions/commit/ce739780dd1fcdb4872f6b1b646801fdad9bc449) attribute annotation - Additional commits viewable in [compare view](https://github.com/fluentassertions/fluentassertions/compare/4.19.3...5.8.0)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) Finally, you can contact us by mentioning @dependabot.