You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Generic method with differently named generic arguments to parent throws KeyNotFoundException #106
Based on other non-Castle GitHub issues others have linked here the problem is as the test below highlights, the interface and implementation generic arguments must have the same name otherwise DynamicProxy breaks:
System.Collections.Generic.KeyNotFoundException : The given key was not present in the dictionary.
TearDown : System.NotSupportedException : Type 'Castle.Proxies.TestProxy' was not completed.
changed the title [-]Generic Method; Moq related.[/-][+]Generic method with differently named generic arguments to parent throws KeyNotFoundException[/+]on Jul 11, 2016
Activity
Fixed failing test. Changed generic type name.
kkozmic-seek commentedon Sep 8, 2015
Hey @HelloKitty
Is this still an issue or was that MOQ specific?
kkozmic commentedon Sep 9, 2015
Also, if it's not and it's still an issue, can you elaborate on when the issue occurs. Posting a failing test would help.
jonorossi commentedon Jul 8, 2016
Based on other non-Castle GitHub issues others have linked here the problem is as the test below highlights, the interface and implementation generic arguments must have the same name otherwise DynamicProxy breaks:
Failure:
jonorossi commentedon Jul 8, 2016
Since this is a long standing defect and has a workaround, I'm removing it from the v4.0 milestone.
[-]Generic Method; Moq related.[/-][+]Generic method with differently named generic arguments to parent throws KeyNotFoundException[/+]