Bump NSubstitute from 5.3.0 to 6.1.0
Updated NSubstitute from 5.3.0 to 6.1.0.
Release notes
Sourced from NSubstitute's releases.
6.1.0
NSubstitute v6.1.0
This release reverts nullability support introduced in 6.0. This change caused a number of problems for callers (#973, #976), and trying to resolve these (#976) revealed the need for more fundamental changes to NSubstitute to effectively support this. As a result, nullability is again disabled for public API. Huge thanks to @jdb0123, @Romfos, and @Moha-sami for their PRs addressing this, and thanks for all those who raised issues. We also humbly award @zvirja with one unlimited "I told you so" pass to use as he sees fit.
What's Changed
- Add new argument matcher for comparing objects by reference by @Wer-Wolf in https://github.com/nsubstitute/NSubstitute/pull/963
- Revert nullability changes in https://github.com/nsubstitute/NSubstitute/pull/985
New Contributors
- @Wer-Wolf made their first contribution in https://github.com/nsubstitute/NSubstitute/pull/963
Full Changelog: https://github.com/nsubstitute/NSubstitute/compare/v6.0.0...v6.1.0
6.0.0
:information_source: No changes from Release Candidate 1.
NSubstitute v6.0.0
From RC1 notes:
- [NEW]
ArgMatchers.Matchingpredicate matcher as an alternative toIs(Expression<Predicate<T>>. (.NET6 and above.) - [UPDATE] Improved support for custom argument matchers.
Arg.Isnow 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
- Update target frameworks and other infrastructure changes by @Romfos in https://github.com/nsubstitute/NSubstitute/pull/831
- Remove Google Groups hyperlinks by @304NotModified in https://github.com/nsubstitute/NSubstitute/pull/804
- Improve output for expected argument matchers in https://github.com/nsubstitute/NSubstitute/pull/806
- Mark Substitute.For method as Pure by @Dzliera in https://github.com/nsubstitute/NSubstitute/pull/844
- Move package creating from build.fsproj to github actions by @Romfos in https://github.com/nsubstitute/NSubstitute/pull/838
- Added .NET 9 to test matrix by @Romfos in https://github.com/nsubstitute/NSubstitute/pull/848
- Update dependencies by @Saibamen in https://github.com/nsubstitute/NSubstitute/pull/843
- Migrate documentation to docfx by @Romfos in https://github.com/nsubstitute/NSubstitute/pull/850
- Added test for issue #716 by @rbeurskens in https://github.com/nsubstitute/NSubstitute/pull/846
- feat: add dependabot for this project for minor and patch updates for nuget packages and github actions by @wmundev in https://github.com/nsubstitute/NSubstitute/pull/792
- #853 Fix matching with multiple generic arguments of the same type by @rholek in https://github.com/nsubstitute/NSubstitute/pull/858
- Ability to mock protected methods with and without return value by @Jason31569 in https://github.com/nsubstitute/NSubstitute/pull/845
- Enable nullability for public api by @Romfos in https://github.com/nsubstitute/NSubstitute/pull/856
- Bugfix/async event handlers return instantly by @jmartschinke in https://github.com/nsubstitute/NSubstitute/pull/808
- Fix matching generic calls with AnyType when the generic argument is also a generic argument in return type, out or ref parameter by @JMolenkamp in https://github.com/nsubstitute/NSubstitute/pull/862
- Feature: allow interception of any generic method call when using Arg.AnyType by @JMolenkamp in https://github.com/nsubstitute/NSubstitute/pull/855
- Params arg unit test by @Jason31569 in https://github.com/nsubstitute/NSubstitute/pull/874
- Added exception extensions for ValueTask without return type (rebase) in https://github.com/nsubstitute/NSubstitute/pull/873
- Migrate to slnx by @Romfos in https://github.com/nsubstitute/NSubstitute/pull/882
- Migrate documentation validation from build.fsproj to Roslyn code generator by @Romfos in https://github.com/nsubstitute/NSubstitute/pull/883
- Fix doc links (#884) in https://github.com/nsubstitute/NSubstitute/pull/886
- Add PackageReadmeFile. by @peymanr34 in https://github.com/nsubstitute/NSubstitute/pull/888
- Make public api and tests the same for all TFMs by @Romfos in https://github.com/nsubstitute/NSubstitute/pull/885
- Migrate documentation samples to NUnit4 by @Romfos in https://github.com/nsubstitute/NSubstitute/pull/889
- Run unit tests in Microsoft.Testing.Platform mode by @Romfos in https://github.com/nsubstitute/NSubstitute/pull/896
- Bump actions/checkout from 4 to 5 by @dependabot[bot] in https://github.com/nsubstitute/NSubstitute/pull/902
- Fix typo in return value documentation by @ericmutta in https://github.com/nsubstitute/NSubstitute/pull/903
- Bump actions/setup-dotnet from 4 to 5 by @dependabot[bot] in https://github.com/nsubstitute/NSubstitute/pull/907
- Fix typo in received calls documentation by @ericmutta in https://github.com/nsubstitute/NSubstitute/pull/904
- Simplify github actions to use less jobs by @Romfos in https://github.com/nsubstitute/NSubstitute/pull/911
- Bump actions/upload-artifact from 4 to 5 by @dependabot[bot] in https://github.com/nsubstitute/NSubstitute/pull/916
- Bump NUnit3TestAdapter from 5.0.0 to 5.2.0 by @dependabot[bot] in https://github.com/nsubstitute/NSubstitute/pull/922
... (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.
- [NEW]
ArgMatchers.Matchingpredicate matcher as an alternative toIs(Expression<Predicate<T>>. (.NET6 and above.) - [UPDATE] Improved support for custom argument matchers.
Arg.Isnow 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
- Update target frameworks and other infrastructure changes by @Romfos in https://github.com/nsubstitute/NSubstitute/pull/831
- Remove Google Groups hyperlinks by @304NotModified in https://github.com/nsubstitute/NSubstitute/pull/804
- Improve output for expected argument matchers in https://github.com/nsubstitute/NSubstitute/pull/806
- Mark Substitute.For method as Pure by @Dzliera in https://github.com/nsubstitute/NSubstitute/pull/844
- Move package creating from build.fsproj to github actions by @Romfos in https://github.com/nsubstitute/NSubstitute/pull/838
- Added .NET 9 to test matrix by @Romfos in https://github.com/nsubstitute/NSubstitute/pull/848
- Update dependencies by @Saibamen in https://github.com/nsubstitute/NSubstitute/pull/843
- Migrate documentation to docfx by @Romfos in https://github.com/nsubstitute/NSubstitute/pull/850
- Added test for issue #716 by @rbeurskens in https://github.com/nsubstitute/NSubstitute/pull/846
- feat: add dependabot for this project for minor and patch updates for nuget packages and github actions by @wmundev in https://github.com/nsubstitute/NSubstitute/pull/792
- #853 Fix matching with multiple generic arguments of the same type by @rholek in https://github.com/nsubstitute/NSubstitute/pull/858
- Ability to mock protected methods with and without return value by @Jason31569 in https://github.com/nsubstitute/NSubstitute/pull/845
- Enable nullability for public api by @Romfos in https://github.com/nsubstitute/NSubstitute/pull/856
- Bugfix/async event handlers return instantly by @jmartschinke in https://github.com/nsubstitute/NSubstitute/pull/808
- Fix matching generic calls with AnyType when the generic argument is also a generic argument in return type, out or ref parameter by @JMolenkamp in https://github.com/nsubstitute/NSubstitute/pull/862
- Feature: allow interception of any generic method call when using Arg.AnyType by @JMolenkamp in https://github.com/nsubstitute/NSubstitute/pull/855
- Params arg unit test by @Jason31569 in https://github.com/nsubstitute/NSubstitute/pull/874
- Added exception extensions for ValueTask without return type (rebase) in https://github.com/nsubstitute/NSubstitute/pull/873
- Migrate to slnx by @Romfos in https://github.com/nsubstitute/NSubstitute/pull/882
- Migrate documentation validation from build.fsproj to Roslyn code generator by @Romfos in https://github.com/nsubstitute/NSubstitute/pull/883
- Fix doc links (#884) in https://github.com/nsubstitute/NSubstitute/pull/886
- Add PackageReadmeFile. by @peymanr34 in https://github.com/nsubstitute/NSubstitute/pull/888
- Make public api and tests the same for all TFMs by @Romfos in https://github.com/nsubstitute/NSubstitute/pull/885
- Migrate documentation samples to NUnit4 by @Romfos in https://github.com/nsubstitute/NSubstitute/pull/889
- Run unit tests in Microsoft.Testing.Platform mode by @Romfos in https://github.com/nsubstitute/NSubstitute/pull/896
- Bump actions/checkout from 4 to 5 by @dependabot[bot] in https://github.com/nsubstitute/NSubstitute/pull/902
- Fix typo in return value documentation by @ericmutta in https://github.com/nsubstitute/NSubstitute/pull/903
- Bump actions/setup-dotnet from 4 to 5 by @dependabot[bot] in https://github.com/nsubstitute/NSubstitute/pull/907
- Fix typo in received calls documentation by @ericmutta in https://github.com/nsubstitute/NSubstitute/pull/904
- Simplify github actions to use less jobs by @Romfos in https://github.com/nsubstitute/NSubstitute/pull/911
- Bump actions/upload-artifact from 4 to 5 by @dependabot[bot] in https://github.com/nsubstitute/NSubstitute/pull/916
- Bump NUnit3TestAdapter from 5.0.0 to 5.2.0 by @dependabot[bot] in https://github.com/nsubstitute/NSubstitute/pull/922
- Bump BenchmarkDotNet from 0.15.2 to 0.15.5 by @dependabot[bot] in https://github.com/nsubstitute/NSubstitute/pull/921
- Add .NET 10 to test matrix by @Romfos in https://github.com/nsubstitute/NSubstitute/pull/913
... (truncated)
Commits viewable in compare view.
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
[!NOTE]
Bump NSubstitute from 5.3.0 to 6.1.0
Updates the NSubstitute version in Directory.Packages.props and regenerates the lock file for the application test project.
Macroscope summarized 813fd72.