v4.4.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 #663 - Updated NSubstitute to v5 for modern TFMs by @Havunen in #690
- CastleDynamicProxyFactory_HasItem_true_when_array_is_null by @phongphanq in #683
- Add support for
ReturnsNull
calls for nullable value types by @Stedoss in #692
New Contributors
- @Socolin made their first contribution in #663
- @phongphanq made their first contribution in #683
- @Stedoss made their first contribution in #692
Full Changelog: v4.3.0...v4.4.0