Skip to content

Conversation

dennisdoomen
Copy link
Member

@dennisdoomen dennisdoomen commented Dec 1, 2024

This pull request includes several important changes to improve the consistency and accuracy of member path handling in the FluentAssertions library. The changes focus on replacing the use of Name and PathAndName with Subject and Expectation properties in various classes and methods.

Member Path Handling Improvements:

Consistency in Node Handling:

Adjustments in Equivalency Validation:

Updates in Matching Rules:

These changes collectively enhance the handling of member paths and improve the overall consistency and accuracy of the FluentAssertions library.

Closes #2812

IMPORTANT

  • If the PR touches the public API, the changes have been approved in a separate issue with the "api-approved" label.
  • The code complies with the Coding Guidelines for C#.
  • The changes are covered by unit tests which follow the Arrange-Act-Assert syntax and the naming conventions such as is used in these tests.
  • If the PR adds a feature or fixes a bug, please update the release notes with a functional description that explains what the change means to consumers of this library, which are published on the website.
  • If the PR changes the public API the changes needs to be included by running AcceptApiChanges.ps1 or AcceptApiChanges.sh.
  • If the PR affects the documentation, please include your changes in this pull request so the documentation will appear on the website.
    • Please also run ./build.sh --target spellcheck or .\build.ps1 --target spellcheck before pushing and check the good outcome

Copy link

github-actions bot commented Dec 1, 2024

Qodana for .NET

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

@dennisdoomen dennisdoomen force-pushed the fix/2812-with-mapping branch from bcdaff2 to 4c6a722 Compare December 1, 2024 20:31
@jnyrup
Copy link
Member

jnyrup commented Dec 2, 2024

Thinking aloud: since #2812 has a workaround and this is not a regression, should this be targeted against develop instead of main?

@dennisdoomen
Copy link
Member Author

Thinking aloud: since #2812 has a workaround and this is not a regression, should this be targeted against develop instead of main?

My thought was that if this can be fixed in a non-breaking way, I might consider targeting main. But realistically, it's probably going to be targeting develop instead.

@dennisdoomen dennisdoomen force-pushed the fix/2812-with-mapping branch 5 times, most recently from 70b9c94 to 93a86eb Compare December 7, 2024 08:38
@coveralls
Copy link

coveralls commented Dec 7, 2024

Pull Request Test Coverage Report for Build 12437282824

Details

  • 85 of 87 (97.7%) changed or added relevant lines in 23 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.003%) to 97.401%

Changes Missing Coverage Covered Lines Changed/Added Lines %
Src/FluentAssertions/Equivalency/EquivalencyValidationContext.cs 1 2 50.0%
Src/FluentAssertions/Equivalency/Steps/EnumerableEquivalencyValidator.cs 6 7 85.71%
Totals Coverage Status
Change from base Build 12397046960: 0.003%
Covered Lines: 12391
Relevant Lines: 12579

💛 - Coveralls

@dennisdoomen dennisdoomen force-pushed the fix/2812-with-mapping branch 2 times, most recently from 85775b7 to 9659be1 Compare December 7, 2024 09:14
@dennisdoomen dennisdoomen changed the base branch from main to develop December 7, 2024 09:15
@dennisdoomen dennisdoomen force-pushed the fix/2812-with-mapping branch 12 times, most recently from 06aae03 to 5c44716 Compare December 14, 2024 13:27
@dennisdoomen dennisdoomen force-pushed the fix/2812-with-mapping branch 4 times, most recently from b138371 to e04141c Compare December 15, 2024 12:27
@dennisdoomen dennisdoomen marked this pull request as ready for review December 15, 2024 12:43
This was referenced Sep 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BeEquivalentTo comparision When deep object and WithMapping
3 participants