Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
nsubstitute.4.4.0.nupkg | 2022-07-17 | 456.0 kB | |
README.md | 2022-07-10 | 2.2 kB | |
v4.4.0.tar.gz | 2022-07-10 | 19.7 MB | |
v4.4.0.zip | 2022-07-10 | 19.9 MB | |
Totals: 4 Items | 40.1 MB | 0 |
Hi all,
We've released NSubstitute v4.4.0. This adds support for Castle Core v5, thanks to @Havunen (#690, [#673]), as well as fixing an issue checking for constructor args on null object, courtesy of @phongphanq, and @appel1 (#683, [#685]). Thanks also to @Mandroide for the code review. @Socolin has also added .ThrowsAsync()
that will correctly mock exceptions on async methods (#609, [#663]).
Thanks a lot to all code contributors, reviewers, and people who have raised and/or commented on issues.
If you haven't already done so, please make sure you add the NSubstitute.Analyzers package wherever you reference NSubstitute: https://nsubstitute.github.io/help/nsubstitute-analysers/
As always, please raise an issue on GitHub if you have any problems.
Changelog: https://github.com/nsubstitute/NSubstitute/blob/v4.4.0/CHANGELOG.md Breaking changes: There should be no breaking changes with this release. Project links:
- NuGet:
- GitHub: http://github.com/nsubstitute/NSubstitute
- Web: http://nsubstitute.github.io/
What's Changed
- Add
.ThrowsAsync()
that will correctly mock exception on async methods by @Socolin in https://github.com/nsubstitute/NSubstitute/pull/663 - Updated NSubstitute to v5 for modern TFMs by @Havunen in https://github.com/nsubstitute/NSubstitute/pull/690
- CastleDynamicProxyFactory_HasItem_true_when_array_is_null by @phongphanq in https://github.com/nsubstitute/NSubstitute/pull/683
- Add support for
ReturnsNull
calls for nullable value types by @Stedoss in https://github.com/nsubstitute/NSubstitute/pull/692
New Contributors
- @Socolin made their first contribution in https://github.com/nsubstitute/NSubstitute/pull/663
- @phongphanq made their first contribution in https://github.com/nsubstitute/NSubstitute/pull/683
- @Stedoss made their first contribution in https://github.com/nsubstitute/NSubstitute/pull/692
Full Changelog: https://github.com/nsubstitute/NSubstitute/compare/v4.3.0...v4.4.0