Skip to content

Bump NSubstitute from 5.3.0 to 6.0.0#347

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/nuget/Proxytrace.Licensing.Tests/NSubstitute-6.0.0
Closed

Bump NSubstitute from 5.3.0 to 6.0.0#347
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/nuget/Proxytrace.Licensing.Tests/NSubstitute-6.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 12, 2026

Copy link
Copy Markdown
Contributor

Updated NSubstitute from 5.3.0 to 6.0.0.

Release notes

Sourced from NSubstitute's releases.

6.0.0

ℹ️ No changes from Release Candidate 1.

NSubstitute v6.0.0

From RC1 notes:

  • [NEW] ArgMatchers.Matching predicate matcher as an alternative to Is(Expression<Predicate<T>>. (.NET6 and above.)
  • [UPDATE] Improved support for custom argument matchers. Arg.Is now accepts arg matchers.
  • [UPDATE][BREAKING] Update target frameworks: .NET8, .NET Standard 2.0
  • [UPDATE][BREAKING] Remove legacy obsolete API
  • [UPDATE][BREAKING] Mark as obsolete api CompatArg with pre c# 7.0 support
  • [UPDATE][BREAKING] Nullability is enabled for public api for .NET 8+ TFMs
  • [UPDATE] Migrate documentation to docfx platform and update samples to NUnit 4
  • [NEW] Added NuGet Package README file.

Full change list

6.0.0-rc.1

NSubstitute v6.0.0 Release Candidate 1

Due to the large number of changes in this release, we wanted to start with a release candidate to ensure we've correctly captured breaking changes.

  • [NEW] ArgMatchers.Matching predicate matcher as an alternative to Is(Expression<Predicate<T>>. (.NET6 and above.)
  • [UPDATE] Improved support for custom argument matchers. Arg.Is now accepts arg matchers.
  • [UPDATE][BREAKING] Update target frameworks: .NET8, .NET Standard 2.0
  • [UPDATE][BREAKING] Remove legacy obsolete API
  • [UPDATE][BREAKING] Mark as obsolete api CompatArg with pre c# 7.0 support
  • [UPDATE][BREAKING] Nullability is enabled for public api for .NET 8+ TFMs
  • [UPDATE] Migrate documentation to docfx platform and update samples to NUnit 4
  • [NEW] Added NuGet Package README file.

Full change list

Commits viewable in compare view.

Dependabot compatibility score

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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)

---
updated-dependencies:
- dependency-name: NSubstitute
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added .NET Pull requests that update .NET code dependencies Pull requests that update a dependency file labels Jul 12, 2026
@JabbaKadabra

Copy link
Copy Markdown
Collaborator

Rejecting this bump for now — NSubstitute 6.0.0 requires test-code changes we should make deliberately, not as a drive-by dependency update.

6.0.0 tightens the nullability annotations on its API surface, so our existing test code no longer satisfies the compiler. With warnings-as-errors, the backend build fails across several projects:

Proxytrace.Infrastructure.Tests/ProviderClientTests.cs(58,42): error CS8602: Dereference of a possibly null reference.
Proxytrace.Infrastructure.Tests/ModelClientTests.cs(43,30): error CS8619: Nullability of reference types in value of type
    Task<IAgentCall?> doesn't match target type Task<IAgentCall>.
Proxytrace.Messaging.Tests/RedisIngestionStreamTests.cs(101,41): error CS8602: Dereference of a possibly null reference.
Proxytrace.Application.Tests/AgentNameGeneratorTests.cs(87,66): error CS8602: Dereference of a possibly null reference.
Proxytrace.Application.Tests/Auth/Local/PasswordResetServiceTests.cs(58,39): error CS8602: Dereference of a possibly null reference.
Proxytrace.Application.Tests/CustomAnomaly/BlockedCallRecorderTests.cs(44,74): error CS8602: Dereference of a possibly null reference.
Proxytrace.Application.Tests/CustomAnomaly/BlockedCallIngestionTests.cs(124,13): error CS8602: Dereference of a possibly null reference.

These are not suppressible: ! nullable-suppression is banned repo-wide (CLAUDE.md hard rule), so each site needs a real fix. That is a focused piece of work across the test suite — tracked separately — rather than something to land inside a version bump.

@dependabot ignore this major version

@dependabot dependabot Bot closed this Jul 12, 2026
@dependabot @github

dependabot Bot commented on behalf of github Jul 12, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you about version 6.x.x again, unless you re-open this PR.

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

Labels

dependencies Pull requests that update a dependency file .NET Pull requests that update .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant