Skip to content

Move to FluentAssertions 7.2.2 and pin below 8.x - #135

Merged
NickJosevski merged 1 commit into
masterfrom
nickj/fluentassertions-7-pin
Aug 14, 2026
Merged

Move to FluentAssertions 7.2.2 and pin below 8.x#135
NickJosevski merged 1 commit into
masterfrom
nickj/fluentassertions-7-pin

Conversation

@NickJosevski

Copy link
Copy Markdown
Contributor

Supersedes the Dependabot attempts in #133, #103 and #75.

The test project has been on FluentAssertions 4.19.2 for years. Every Dependabot attempt to move it has failed to build for the same reason: 6.x changed BeCloseTo's tolerance parameter from int milliseconds to a TimeSpan, and Dependabot only edits the .csproj — it can never fix the three call sites, so those PRs can never go green on their own.

FiltersFixture.cs:364, :392, :483   cannot convert from 'int' to 'System.TimeSpan'

That is the entire compatibility gap. With those three lines fixed, all 614 tests pass on 7.2.2.

Why 7.2.2 and not 8.10.0

FluentAssertions 8.0.0 moved to a paid commercial licence, so #133's jump to 8.10.0 is a procurement decision rather than a routine bump. 7.2.2 is the newest release under the old terms.

Why a range and not a version

Version="7.2.2" in NuGet means >= 7.2.2, not a pin — a transitive reference could still float onto 8.x. [7.2.2,8.0.0) allows 7.x patches and hard-blocks 8.0.0+. Verified in project.assets.json.

The matching Dependabot ignore rule uses an explicit >=8.0.0 range rather than version-update:semver-major, because the latter would have blocked this very upgrade while the project sat on 4.19.2.

Notes

The test project has been on FluentAssertions 4.19.2 for years. Every
Dependabot attempt to move it has failed to build, because 6.x renamed
BeCloseTo's tolerance parameter from int milliseconds to a TimeSpan and
Dependabot cannot edit test code to keep up.

FluentAssertions 8.0.0 moved to a paid commercial licence, so the version
is expressed as the range [7.2.2,8.0.0). Note that a bare Version="7.2.2"
would be a minimum rather than a pin, and would still allow a transitive
reference to float onto 8.x.

A matching Dependabot ignore rule stops 8.x being proposed again. It uses
an explicit version range rather than version-update:semver-major, which
would have blocked this upgrade too.

Supersedes the Dependabot attempts in #133, #103 and #75.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@NickJosevski
NickJosevski marked this pull request as ready for review August 14, 2026 01:23
@NickJosevski
NickJosevski enabled auto-merge (rebase) August 14, 2026 01:23
@NickJosevski
NickJosevski merged commit 7b791b9 into master Aug 14, 2026
4 checks passed
@NickJosevski
NickJosevski deleted the nickj/fluentassertions-7-pin branch August 14, 2026 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants