-
Notifications
You must be signed in to change notification settings - Fork 263
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
Interface same name of methods problem #372
Comments
Good catch! It's related to Castle.Core issue castleproject/Core#309 |
@alexandrnikitin If I got it clear, issue has been already fixed in v4.2.1. Therefore, as a temporary fix, @MaLiN2223 could update the Should NSubstitute also change the minimum |
Yes, correct. Updating |
I believe I encountered a bug. I'm working on .NET Core 2.0.
Those are my interfaces:
When I'm trying to substitute
X
this is an exception that occurs:System.TypeLoadException : Method 'Foo' in type 'Castle.Proxies.XProxy' from assembly 'DynamicProxyGenAssembly2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
I think it has something to do with the fact that those methods have the same name because when I change second method's name to
Foo2
everything works.Is there anything I can do to make this example work without changing an interface?
The text was updated successfully, but these errors were encountered: