Skip to content

Breaking API changes from 7.0.0-alpha5 to 7.0.0 #2864

@MeikelLP

Description

@MeikelLP

Description

Dependabot raised FluentAssertions from 7.0.0-alpha5 to 7.0.0 (released yesterday): MeikelLP/quantum-core-x#249

Sadly many tests are failing now because the API changed back (?) to the 6.x state

Please tell me if this is a dependency issue rather than FluentAssertion itself. I can reproduce this locally

The online documentation does not mention this option either: https://fluentassertions.com/strings/
However the docs source code (develop) does list this option:

| `IgnoringNewlineStyle` | Replaces `"\r\n"` and `"\r"` with `"\n"` before comparing the subject and expectation. |

Reproduction Steps

var input = "My\nString";
var expected = "My\r\nString;

// Assert
input.Should().Be(expected, o => o.IgnoringNewlineStyle());

Expected behavior

API from 7.0.0-alpha5 exists?

Actual behavior

Project cannot be build due to missing APIs

Regression?

Maybe?

Known Workarounds

Configuration

No response

Other information

No response

Are you willing to help with a pull-request?

Yes, please assign this issue to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions