NSubstitute
NSubstitute copied to clipboard
Did NSubstitutes use of DynamicProxy change between 2.0.3 and 3.1.0
When trying to upgrade to NSubstitute 3.1.0 I am seeing failures for tests which register NSubstitute mocks with Castle.Windor a la... container.Register<IMock>(
System.NotSupportedException : Can not apply commission concerns to component Late bound <my IMock type here> because it appears to be a target-less proxy. Currently those are not supported.
TearDown : System.NullReferenceException : Object reference not set to an instance of an object.
Any info appreciated.
Cheers Jonathan
Hi @robsonj,
Yes the versions have changed:
- NSubstitute 3.1.0 uses Castle Core 4.2.0-*.
- NSubstitute 2.0.3 uses Castle Core 4.0.0.
Regards, David
@robsonj Could you share more details on the issue you encounter please? Is it NSubstitute related?