A friendly substitute for .NET mocking libraries.
OTHER License
Bot releases are visible (Hide)
We've released NSubstitute v5.2.0.
Summary of main changes:
Many thanks to @alexandrnikitin, @Romfos, @brad, and @304NotModified for their contributions!
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/v5.2.0/CHANGELOG.md
Breaking changes: None.
Project links:
Full Changelog: https://github.com/nsubstitute/NSubstitute/compare/v5.1.0...v5.2.0
Published by dtchepak about 1 year ago
We've released NSubstitute v5.1.0!
Changes:
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/v5.1.0/CHANGELOG.md
Breaking changes: NSubstitute Analyzers may produce false positives in some cases for Arg.AnyType
. Follow https://github.com/nsubstitute/NSubstitute.Analyzers/issues/212 for progress on this. These warnings can be suppressed if required.
Project links:
Published by dtchepak over 1 year ago
Hi all,
We've released NSubstitute v5.0.0. This release updates our target frameworks to the ones recommended by Microsoft: .NET 6+, .NET Framework 4.6.2+, .NET Standard 2.0+. Thanks to @Romfos for this change (#710), and @alexandrnikitin for the review and merge. Thanks also to @TillW for some clarifications to our docs on internal members (#706).
See full release notes here: https://github.com/nsubstitute/NSubstitute/releases/tag/v5.0.0
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/v5.0.0/CHANGELOG.md
Breaking changes:
Project links:
Full Changelog: https://github.com/nsubstitute/NSubstitute/compare/v4.4.0...v5.0.0
Published by dtchepak over 2 years ago
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:
.ThrowsAsync()
that will correctly mock exception on async methods by @Socolin in https://github.com/nsubstitute/NSubstitute/pull/663
ReturnsNull
calls for nullable value types by @Stedoss in https://github.com/nsubstitute/NSubstitute/pull/692
Full Changelog: https://github.com/nsubstitute/NSubstitute/compare/v4.3.0...v4.4.0
Published by dtchepak over 2 years ago
Hi everyone,
We've just released NSubstitute v4.3.0. This introduces support for .NET 5 (#636) and .NET 6 (#674). Thanks to @zvirja and @Havunen!
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 or email the group if you have any problems.
Changelog: https://github.com/nsubstitute/NSubstitute/blob/v4.3.0/CHANGELOG.md
Breaking changes: There should be no breaking changes with this release.
Project links:
Full Changelog: https://github.com/nsubstitute/NSubstitute/compare/v4.2.2...v4.3.0
Hi everyone,
We've just released NSubstitute 4.2.2. This patch release fixes a thread-safety issue with auto-value providers (#600, #601). Thanks to Alex Povar (@zvirja) for these changes.
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 or email the group if you have any problems.
Changelog: https://github.com/nsubstitute/NSubstitute/blob/v4.2.2/CHANGELOG.md
Breaking changes: There should be no breaking changes with this release.
Project links: