Skip to content

deps(tests): Bump NSubstitute from 5.3.0 to 6.0.0 - #1440

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/nuget/SysManager/NSubstitute-6.0.0
Closed

deps(tests): Bump NSubstitute from 5.3.0 to 6.0.0#1440
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/nuget/SysManager/NSubstitute-6.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 13, 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 @github

dependabot Bot commented on behalf of github Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: dependencies, tests. Please create them before Dependabot can add them to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@dependabot
dependabot Bot requested a review from laurentiu021 as a code owner July 13, 2026 07:57
@codecov-commenter

Copy link
Copy Markdown

⚠️ JUnit XML file not found

The CLI was unable to find any JUnit XML files to upload.
For more help, visit our troubleshooting guide.

@dependabot
dependabot Bot force-pushed the dependabot/nuget/SysManager/NSubstitute-6.0.0 branch 3 times, most recently from 9d4aa90 to 5677232 Compare July 21, 2026 07:06
---
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>
@laurentiu021

Copy link
Copy Markdown
Owner

Superseded by #1453, which takes NSubstitute 6.0.0 and fixes the 48 CS8602 arg-matcher nullability errors the bump introduces (the reason this PR's CI failed). Closing in favor of that.

@dependabot @github

dependabot Bot commented on behalf of github Jul 21, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/nuget/SysManager/NSubstitute-6.0.0 branch July 21, 2026 07:45
laurentiu021 added a commit that referenced this pull request Jul 21, 2026
#1453)

NSubstitute 6.0.0 annotates Arg.Is<T> matcher lambda parameters as nullable, so
under the repo's Nullable=enable + TreatWarningsAsErrors the existing
`Arg.Is<T>(x => x.Member...)` matchers raised 48 CS8602 (possible null deref)
errors across 6 unit-test files. Guarded each matcher lambda with a leading
`x != null &&` so the parameter narrows to non-null for the rest of the predicate
(NSubstitute only invokes the predicate with the captured non-null argument, so
behavior is unchanged). Supersedes Dependabot PR #1440 (test-only dependency; no
security advisory driving it).

Co-authored-by: laurentiu021 <laurentiu021@users.noreply.github.com>
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