deps(tests): Bump NSubstitute from 5.3.0 to 6.0.0 - #1440
Conversation
LabelsThe following labels could not be found: Please fix the above issues or remove invalid values from |
|
9d4aa90 to
5677232
Compare
--- 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>
5677232 to
c4cd8a7
Compare
|
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. |
|
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 If you change your mind, just re-open this PR and I'll resolve any conflicts on it. |
#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>
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:
ArgMatchers.Matchingpredicate matcher as an alternative toIs(Expression<Predicate<T>>. (.NET6 and above.)Arg.Isnow accepts arg matchers.Full change list
... (truncated)
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.
ArgMatchers.Matchingpredicate matcher as an alternative toIs(Expression<Predicate<T>>. (.NET6 and above.)Arg.Isnow accepts arg matchers.Full change list
... (truncated)
Commits viewable in compare view.