- [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 #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 #813
- [NEW] Implement When(...).Throws to avoid confusion with Throw method (#803) by @mihnea-radulescu in #818
- [FIX] Arg.Any<Arg.AnyType>() does not match arguments passed by reference (#787) by @mihnea-radulescu in #811
- [FIX] Support matching arguments whose type is generic, when their concrete type is not known (#786) by @mihnea-radulescu in #814
- [FIX] Release build workflow (#797)
- [DOC] Add Throws for exceptions to the docs by @304NotModified in #795
- [DOC] Remove Visual Studio for Mac from readme by @Romfos in #807
- [TECH] Migrate from NUnit 3 to NUnit 4 by @Romfos in #783
- [TECH] Update build project to .net 8 by @Romfos in #776
- [TECH] Code style: use C# 12 collection literals by @Romfos in #810
- [TECH] Use c# 12 primary constructors by @Romfos in #812
- [TECH] Added csharp_style_prefer_primary_constructors into editorconfig by @Romfos in #819
Thanks to first-time contributors @mihnea-radulescu and @marcoregueira! Thanks also @304NotModified and @Romfos for their continued support and contributions to this release.
Full Changelog: v5.2.0...v5.3.0