v6.0.0 Release Candidate 1
Pre-release
Pre-release
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 #831
- Remove Google Groups hyperlinks by @304NotModified in #804
- Improve output for expected argument matchers in #806
- Mark Substitute.For method as Pure by @Dzliera in #844
- Move package creating from build.fsproj to github actions by @Romfos in #838
- Added .NET 9 to test matrix by @Romfos in #848
- Update dependencies by @Saibamen in #843
- Migrate documentation to docfx by @Romfos in #850
- Added test for issue #716 by @rbeurskens in #846
- feat: add dependabot for this project for minor and patch updates for nuget packages and github actions by @wmundev in #792
- #853 Fix matching with multiple generic arguments of the same type by @rholek in #858
- Ability to mock protected methods with and without return value by @Jason31569 in #845
- Enable nullability for public api by @Romfos in #856
- Bugfix/async event handlers return instantly by @jmartschinke in #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 #862
- Feature: allow interception of any generic method call when using Arg.AnyType by @JMolenkamp in #855
- Params arg unit test by @Jason31569 in #874
- Added exception extensions for ValueTask without return type (rebase) in #873
- Migrate to slnx by @Romfos in #882
- Migrate documentation validation from build.fsproj to Roslyn code generator by @Romfos in #883
- Fix doc links (#884) in #886
- Add PackageReadmeFile. by @peymanr34 in #888
- Make public api and tests the same for all TFMs by @Romfos in #885
- Migrate documentation samples to NUnit4 by @Romfos in #889
- Run unit tests in Microsoft.Testing.Platform mode by @Romfos in #896
- Bump actions/checkout from 4 to 5 by @dependabot[bot] in #902
- Fix typo in return value documentation by @ericmutta in #903
- Bump actions/setup-dotnet from 4 to 5 by @dependabot[bot] in #907
- Fix typo in received calls documentation by @ericmutta in #904
- Simplify github actions to use less jobs by @Romfos in #911
- Bump actions/upload-artifact from 4 to 5 by @dependabot[bot] in #916
- Bump NUnit3TestAdapter from 5.0.0 to 5.2.0 by @dependabot[bot] in #922
- Bump BenchmarkDotNet from 0.15.2 to 0.15.5 by @dependabot[bot] in #921
- Add .NET 10 to test matrix by @Romfos in #913
- Bump Microsoft.Extensions.Logging.Abstractions from 9.0.0 to 10.0.0 by @dependabot[bot] in #926
- Bump actions/checkout from 5 to 6 by @dependabot[bot] in #928
- Bump Microsoft.CodeAnalysis.CSharp from 4.14.0 to 5.0.0 by @dependabot[bot] in #929
- Bump BenchmarkDotNet from 0.15.5 to 0.15.6 by @dependabot[bot] in #924
- Bump BenchmarkDotNet from 0.15.6 to 0.15.8 by @dependabot[bot] in #930
- Bump NUnit3TestAdapter from 5.2.0 to 6.0.0 by @dependabot[bot] in #931
- Fix XML docs for WhenCalled.Throws by @kerego in #934
- Bump NUnit3TestAdapter from 5.2.0 to 6.0.0 by @dependabot[bot] in #937
- Bump Microsoft.Extensions.Logging.Abstractions from 10.0.0 to 10.0.1 by @dependabot[bot] in #936
- Bump actions/upload-artifact from 5 to 6 by @dependabot[bot] in #935
- Bump NUnit3TestAdapter from 6.0.0 to 6.0.1 by @dependabot[bot] in #939
- Fixed bug that would cause a struct to not match and throw a runtime error. by @Notallthatevil in #895
- Remove TestingPlatformDotnetTestSupport for test projects by @Romfos in #938
- Improve changelog by @304NotModified in #940
- Bump NUnit3TestAdapter from 6.0.1 to 6.1.0 by @dependabot[bot] in #941
- Bump Microsoft.Extensions.Logging.Abstractions from 10.0.1 to 10.0.2 by @dependabot[bot] in #942
- Custom arg matcher support in #912
- Bump Microsoft.Extensions.Logging.Abstractions from 10.0.2 to 10.0.3 by @dependabot[bot] in #944
- Bump NUnit from 4.4.0 to 4.5.0 by @dependabot[bot] in #946
- Bump actions/upload-artifact from 6 to 7 by @dependabot[bot] in #949
- Added test for DefaultInterfacesImplementation by @304NotModified in #950
- Bump NUnit from 4.5.0 to 4.5.1 by @dependabot[bot] in #951
New Contributors
Thank you to our first time contributors!
- @Dzliera made their first contribution in #844
- @Saibamen made their first contribution in #843
- @rbeurskens made their first contribution in #846
- @wmundev made their first contribution in #792
- @rholek made their first contribution in #858
- @Jason31569 made their first contribution in #845
- @jmartschinke made their first contribution in #808
- @JMolenkamp made their first contribution in #862
- @peymanr34 made their first contribution in #888
- @dependabot[bot] made their first contribution in #902
- @ericmutta made their first contribution in #903
- @kerego made their first contribution in #934
- @Notallthatevil made their first contribution in #895
Thanks also to @304NotModified and @Romfos for their continued support and contributions to this release.
Full Changelog: v5.3.0...v6.0.0-rc.1