| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2026-07-12 | 9.2 kB | |
| v6.0.0 source code.tar.gz | 2026-07-12 | 498.0 kB | |
| v6.0.0 source code.zip | 2026-07-12 | 728.8 kB | |
| Totals: 3 Items | 1.2 MB | 3 | |
: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<T> 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
- Bump Microsoft.Extensions.Logging.Abstractions from 9.0.0 to 10.0.0 by @dependabot[bot] in https://github.com/nsubstitute/NSubstitute/pull/926
- Bump actions/checkout from 5 to 6 by @dependabot[bot] in https://github.com/nsubstitute/NSubstitute/pull/928
- Bump Microsoft.CodeAnalysis.CSharp from 4.14.0 to 5.0.0 by @dependabot[bot] in https://github.com/nsubstitute/NSubstitute/pull/929
- Bump BenchmarkDotNet from 0.15.5 to 0.15.6 by @dependabot[bot] in https://github.com/nsubstitute/NSubstitute/pull/924
- Bump BenchmarkDotNet from 0.15.6 to 0.15.8 by @dependabot[bot] in https://github.com/nsubstitute/NSubstitute/pull/930
- Bump NUnit3TestAdapter from 5.2.0 to 6.0.0 by @dependabot[bot] in https://github.com/nsubstitute/NSubstitute/pull/931
- Fix XML docs for WhenCalled.Throws by @kerego in https://github.com/nsubstitute/NSubstitute/pull/934
- Bump NUnit3TestAdapter from 5.2.0 to 6.0.0 by @dependabot[bot] in https://github.com/nsubstitute/NSubstitute/pull/937
- Bump Microsoft.Extensions.Logging.Abstractions from 10.0.0 to 10.0.1 by @dependabot[bot] in https://github.com/nsubstitute/NSubstitute/pull/936
- Bump actions/upload-artifact from 5 to 6 by @dependabot[bot] in https://github.com/nsubstitute/NSubstitute/pull/935
- Bump NUnit3TestAdapter from 6.0.0 to 6.0.1 by @dependabot[bot] in https://github.com/nsubstitute/NSubstitute/pull/939
- Fixed bug that would cause a struct to not match and throw a runtime error. by @Notallthatevil in https://github.com/nsubstitute/NSubstitute/pull/895
- Remove TestingPlatformDotnetTestSupport for test projects by @Romfos in https://github.com/nsubstitute/NSubstitute/pull/938
- Improve changelog by @304NotModified in https://github.com/nsubstitute/NSubstitute/pull/940
- Bump NUnit3TestAdapter from 6.0.1 to 6.1.0 by @dependabot[bot] in https://github.com/nsubstitute/NSubstitute/pull/941
- Bump Microsoft.Extensions.Logging.Abstractions from 10.0.1 to 10.0.2 by @dependabot[bot] in https://github.com/nsubstitute/NSubstitute/pull/942
- Custom arg matcher support in https://github.com/nsubstitute/NSubstitute/pull/912
- Bump Microsoft.Extensions.Logging.Abstractions from 10.0.2 to 10.0.3 by @dependabot[bot] in https://github.com/nsubstitute/NSubstitute/pull/944
- Bump NUnit from 4.4.0 to 4.5.0 by @dependabot[bot] in https://github.com/nsubstitute/NSubstitute/pull/946
- Bump actions/upload-artifact from 6 to 7 by @dependabot[bot] in https://github.com/nsubstitute/NSubstitute/pull/949
- Added test for DefaultInterfacesImplementation by @304NotModified in https://github.com/nsubstitute/NSubstitute/pull/950
- Bump NUnit from 4.5.0 to 4.5.1 by @dependabot[bot] in https://github.com/nsubstitute/NSubstitute/pull/951
New Contributors
Thank you to our first time contributors!
- @Dzliera made their first contribution in https://github.com/nsubstitute/NSubstitute/pull/844
- @Saibamen made their first contribution in https://github.com/nsubstitute/NSubstitute/pull/843
- @rbeurskens made their first contribution in https://github.com/nsubstitute/NSubstitute/pull/846
- @wmundev made their first contribution in https://github.com/nsubstitute/NSubstitute/pull/792
- @rholek made their first contribution in https://github.com/nsubstitute/NSubstitute/pull/858
- @Jason31569 made their first contribution in https://github.com/nsubstitute/NSubstitute/pull/845
- @jmartschinke made their first contribution in https://github.com/nsubstitute/NSubstitute/pull/808
- @JMolenkamp made their first contribution in https://github.com/nsubstitute/NSubstitute/pull/862
- @peymanr34 made their first contribution in https://github.com/nsubstitute/NSubstitute/pull/888
- @dependabot[bot] made their first contribution in https://github.com/nsubstitute/NSubstitute/pull/902
- @ericmutta made their first contribution in https://github.com/nsubstitute/NSubstitute/pull/903
- @kerego made their first contribution in https://github.com/nsubstitute/NSubstitute/pull/934
- @Notallthatevil made their first contribution in https://github.com/nsubstitute/NSubstitute/pull/895
Thanks also to @304NotModified and @Romfos for their continued support and contributions to this release.
Full Changelog: https://github.com/nsubstitute/NSubstitute/compare/v5.3.0...v6.0.0