New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Substituting for COM interfaces #723
Comments
Hi @Tum4ik , I haven't had a chance to try this out yet, but one thing to try is using _wshShell.Configure().CreateShortcut(Arg.Any<string>()).Returns(shortcut); If that doesn't work please let me know and I'll try to reproduce it locally. |
Hi @dtchepak , Thank you for your response. Unfortunately, your suggestion didn't change anything. The exception is still present. |
@Tum4ik Thanks for trying it out. This may take me a bit of time to work out sorry as I don't currently have access to a Windows machine. Is there any more info you can provide about We've had some previous issues with |
Thanks for the update @Tum4ik . I don't normally work with |
During migration from Moq to NSubstitute I've come up with the problem of mocking COM interfaces. It worked with Moq, but now I get the exception:
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException : Cannot perform runtime binding on a null reference
It is possible to face with that case in my repository (branch:
plugins
).So, is there something I don't know? Or maybe it requires additional development.
Thanks for help in advance.
The text was updated successfully, but these errors were encountered: