Visitar URL original
AssertionOptions.AssertEquivalencyUsing(...) is no longer available (comming from 6.x to 8.x) · Issue #3120 · fluentassertions/fluentassertions · GitHub
Skip to content

AssertionOptions.AssertEquivalencyUsing(...) is no longer available (comming from 6.x to 8.x) #3120

Closed

Description

@RIE-UPPERSOLUTIONS

Description

I've read the the upgrade guide and the release note, but I can't find something related about AssertionOptions.AssertEquivalencyUsing(...), is there still a way to archive something like this?

AssertionOptions.AssertEquivalencyUsing(config => config.RespectingRuntimeTypes());

Br

Reproduction Steps

Use FluentAssertions 8.x and use this code

AssertionOptions.AssertEquivalencyUsing(config => config.RespectingRuntimeTypes());

Expected behavior

The code should compile, at the moment it doesn't.

Actual behavior

Code does not compile.

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Are you willing to help with a pull-request?

No

Activity

  1. rizi commented on Nov 10, 2025

    @rizi

    I'm encountering the same "issue", we are currently upgrading to 8.x and planning to buy a license.
    Any advice would highly be appreciated.

    Br

  2. dennisdoomen commented on Nov 10, 2025

    @dennisdoomen
    Member

    Thanks for reporting this. Since the various configurations options in v6 and v7 had become a bit messy, we consolidated all of those under the AssertionConfiguration class. See https://fluentassertions.com/introduction#global-configuration

  3. RIE-UPPERSOLUTIONS commented on Nov 10, 2025

    @RIE-UPPERSOLUTIONS
    Author

    Thanks for reporting this. Since the various configurations options in v6 and v7 had become a bit messy, we consolidated all of those under the AssertionConfiguration class. See https://fluentassertions.com/introduction#global-configuration

    THX @dennisdoomen!
    Could you please close this issue.

    Note: AssertionOptions.AssertEquivalencyUsing(config => config.RespectingRuntimeTypes()); becomes AssertionConfiguration.Current.Equivalency.Modify(config => config.IncludingAllRuntimeProperties());

  4. dennisdoomen commented on Nov 11, 2025

    @dennisdoomen
    Member

    I'll update the breaking changes page as this wasn't the first time somebody asked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions