NSubstitute
NSubstitute copied to clipboard
A friendly substitute for .NET mocking libraries.
A lot of the documentation pages have links that give a 404. For example, the return-from-function help doc link https://nsubstitute.github.io/help/return-from-function shows:  I think there may have been some missing...
Changes: - Make public api and tests the same for all TFMs - Run the same set of tests for all platforms - Update System.Threading.Tasks.Extensions dependency Motivation: Some public api...
_This is #880 + a check unit test_ @Romfos Unfortunately I cannot push to your branch, but I think we should not use .Internal types in the public API. That's...
Are there any plans to develop AutoMocker for NSubstitute like https://github.com/moq/Moq.AutoMocker?
Bumps the nsubstitute_acceptance_specs_minor_patch_updates group with 3 updates in the /tests/NSubstitute.Acceptance.Specs directory: [System.Threading.Tasks.Extensions](https://github.com/dotnet/maintenance-packages), [Microsoft.NETFramework.ReferenceAssemblies](https://github.com/Microsoft/dotnet) and [Microsoft.Extensions.Logging.Abstractions](https://github.com/dotnet/runtime). Updates `System.Threading.Tasks.Extensions` from 4.3.0 to 4.6.0 Commits See full diff in compare view Updates `Microsoft.NETFramework.ReferenceAssemblies`...
This PR introduces `WillReceive.InOrder()` to solve the issue where mutable objects lead to false negatives in ordered call verifications. The core problem is that `Received.InOrder()` evaluates argument matchers at verification...
**Is your feature request related to a problem?** I'm encountering the same issue as described in #392 where `Received.InOrder` evaluates argument matchers at assertion time rather than at the time...
Testing 5.2.x https://github.com/castleproject/Core/issues/662 See also remarks for NSubstitute at https://github.com/castleproject/Core/issues/684
See #870 ``` Error: /home/runner/work/NSubstitute/NSubstitute/src/NSubstitute/Proxies/CastleDynamicProxy/ProxyIdInterceptor.cs(28,29): error CS8602: Dereference of a possibly null reference. [/home/runner/work/NSubstitute/NSubstitute/src/NSubstitute/NSubstitute.csproj::TargetFramework=net8.0] Error: /home/runner/work/NSubstitute/NSubstitute/src/NSubstitute/Proxies/CastleDynamicProxy/CastleInvocationMapper.cs(12,13): error CS8602: Dereference of a possibly null reference. [/home/runner/work/NSubstitute/NSubstitute/src/NSubstitute/NSubstitute.csproj::TargetFramework=net8.0] Error: /home/runner/work/NSubstitute/NSubstitute/src/NSubstitute/Proxies/CastleDynamicProxy/CastleInvocationMapper.cs(27,72): error CS8603: Possible...
Proposed for 6.0. From #551: - Make the ReflectionExtensions helper internal and remove OrNull suffix as we use nullability for that. - Do not expose internal classes from Core namespace,...