Sourced from NSubstitute's releases.
v5.3.0
- [NEW] Introduced
Substitute.ForTypeForwardingTo
to create substitutes that forward interceptable calls to a concrete class. This provides an easy way of implementing a test spy over an existing type. Designed and implemented by@marcoregueira
in nsubstitute/NSubstitute#700 from a proposal by@wsaeed
. Thanks to all who contributed to discussions of this feature.- [NEW] Support Raise.EventWith default constructor (#788) by
@mihnea-radulescu
in nsubstitute/NSubstitute#813- [NEW] Implement When(...).Throws to avoid confusion with Throw method (#803) by
@mihnea-radulescu
in nsubstitute/NSubstitute#818- [FIX] Arg.Any() does not match arguments passed by reference (#787) by
@mihnea-radulescu
in nsubstitute/NSubstitute#811- [FIX] Support matching arguments whose type is generic, when their concrete type is not known (#786) by
@mihnea-radulescu
in nsubstitute/NSubstitute#814- [FIX] Release build workflow (nsubstitute/NSubstitute#797)
- [DOC] Add Throws for exceptions to the docs by
@304NotModified
in nsubstitute/NSubstitute#795- [DOC] Remove Visual Studio for Mac from readme by
@Romfos
in nsubstitute/NSubstitute#807- [TECH] Migrate from NUnit 3 to NUnit 4 by
@Romfos
in nsubstitute/NSubstitute#783- [TECH] Update build project to .net 8 by
@Romfos
in nsubstitute/NSubstitute#776- [TECH] Code style: use C# 12 collection literals by
@Romfos
in nsubstitute/NSubstitute#810- [TECH] Use c# 12 primary constructors by
@Romfos
in nsubstitute/NSubstitute#812- [TECH] Added csharp_style_prefer_primary_constructors into editorconfig by
@Romfos
in nsubstitute/NSubstitute#819Thanks to first-time contributors
@mihnea-radulescu
and@marcoregueira
! Thanks also@304NotModified
and@Romfos
for their continued support and contributions to this release.Full Changelog: https://github.com/nsubstitute/NSubstitute/compare/v5.2.0...v5.3.0
v5.2.0
⚠️ Note: there is no build currently available for this version due to an issue switching over to a new automated release build. We'll have a new release shortly once we sort this.
Summary of main changes:
- [UPDATE] Upgrade website build to jekyll 3.9.0 and add link to edit website pages (#767, #769; thanks to
@brad
)- [UPDATE] Build improvements:
- [NEW] Support for Sourcelink and Deterministic Build. Thanks
@304NotModified
! (#737)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:
... (truncated)
Sourced from NSubstitute's changelog.
5.3.0 (October 2024)
- [NEW] Introduced
Substitute.ForTypeForwardingTo
to create substitutes that forward interceptable calls to a concrete class. This provides an easy way of implementing a test spy over an existing type. Designed and implemented by@marcoregueira
in nsubstitute/NSubstitute#700 from a proposal by@wsaeed
. Thanks to all who contributed to discussions of this feature.- [NEW] Support Raise.EventWith default constructor (#788) by
@mihnea-radulescu
in nsubstitute/NSubstitute#813- [NEW] Implement When(...).Throws to avoid confusion with Throw method (#803) by
@mihnea-radulescu
in nsubstitute/NSubstitute#818- [FIX] Arg.Any() does not match arguments passed by reference (#787) by
@mihnea-radulescu
in nsubstitute/NSubstitute#811- [FIX] Support matching arguments whose type is generic, when their concrete type is not known (#786) by
@mihnea-radulescu
in nsubstitute/NSubstitute#814- [FIX] Release build workflow (nsubstitute/NSubstitute#797)
- [DOC] Add Throws for exceptions to the docs by
@304NotModified
in nsubstitute/NSubstitute#795- [DOC] Remove Visual Studio for Mac from readme by
@Romfos
in nsubstitute/NSubstitute#807- [TECH] Migrate from NUnit 3 to NUnit 4 by
@Romfos
in nsubstitute/NSubstitute#783- [TECH] Update build project to .net 8 by
@Romfos
in nsubstitute/NSubstitute#776- [TECH] Code style: use C# 12 collection literals by
@Romfos
in nsubstitute/NSubstitute#810- [TECH] Use c# 12 primary constructors by
@Romfos
in nsubstitute/NSubstitute#812- [TECH] Added csharp_style_prefer_primary_constructors into editorconfig by
@Romfos
in nsubstitute/NSubstitute#819Thanks to first-time contributors
@mihnea-radulescu
and@marcoregueira
! Thanks also@304NotModified
and@Romfos
for their continued support and contributions to this release.5.2.0 (Apr 2024; tagged but not released to nuget)
- [UPDATE] Upgrade website build to jekyll 3.9.0 and add link to edit website pages (#767, #769; thanks to
@brad
)- [UPDATE] Build improvements:
- [NEW] Support for Sourcelink and Deterministic Build. Thanks
@304NotModified
! (#737)Many thanks to
@alexandrnikitin
,@Romfos
,@brad
, and@304NotModified
for their contributions!
45e00e3
Prep 5.3.0 release (#836)cc73901
Release build workflow (#797)4d258a2
Feature: Enable call forwarding and substitution for non virtual methods or...b8b0184
Added csharp_style_prefer_primary_constructors into editorconfig (#819)73818a6
Unable to match arguments whose type is generic, when their concrete type is ...da82bc5
Merge pull request #813 from mihnea-radulescu/bug/issue-788-Raise-EventWith-d...2ce4d66
Replaced Obsolete attributes in WhenCalled<T> with doc comments.0c0d798
When(...).Throws gives a CouldNotSetReturnDueToNoLastCallException (#803)4bd429e
Updated event raising logic to only allow internal default constructorsee276f3
Merge branch 'main' into bug/issue-788-Raise-EventWith-default-constructor