NSubstitute icon indicating copy to clipboard operation
NSubstitute copied to clipboard

Did NSubstitutes use of DynamicProxy change between 2.0.3 and 3.1.0

Open robsonj opened this issue 6 years ago • 2 comments

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>() etc. These tests pass just fine with NSubstitute 2.0.3, but with 3.1.0 I receive the following error from Castle...

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

robsonj avatar Nov 08 '18 14:11 robsonj

Hi @robsonj,

Yes the versions have changed:

Regards, David

dtchepak avatar Nov 08 '18 21:11 dtchepak

@robsonj Could you share more details on the issue you encounter please? Is it NSubstitute related?

alexandrnikitin avatar Dec 28 '18 05:12 alexandrnikitin