Skip to content

Added test for DefaultInterfacesImplementation#950

Merged
Romfos merged 1 commit intomainfrom
DefaultInterfacesImplementations-tests
Mar 7, 2026
Merged

Added test for DefaultInterfacesImplementation#950
Romfos merged 1 commit intomainfrom
DefaultInterfacesImplementations-tests

Conversation

@304NotModified
Copy link
Copy Markdown
Contributor

@304NotModified 304NotModified commented Mar 7, 2026

Added a test for default interface implementations

Please note, this test fails with Castle.Core 5.2.1, see castleproject/Core#684:

  Message: 
System.ArgumentNullException : Value cannot be null. (Parameter 'type')

  Stack Trace: 
InvocationHelper.GetMethodOnType(Type type, MethodInfo proxiedMethod)
InheritanceInvocation.get_MethodInvocationTarget()
CastleInvocationMapper.Map(IInvocation castleInvocation) line 11
CastleForwardingInterceptor.Intercept(IInvocation invocation) line 12
AbstractInvocation.Proceed()
ProxyIdInterceptor.Intercept(IInvocation invocation) line 20
AbstractInvocation.Proceed()
ObjectProxy.GetText()
DefaultInterfacesImplementations.DefaultInterface_SetupReturns_UsesReturns() line 18
MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
1)    at Castle.DynamicProxy.Internal.InvocationHelper.GetMethodOnType(Type type, MethodInfo proxiedMethod)
InheritanceInvocation.get_MethodInvocationTarget()
CastleInvocationMapper.Map(IInvocation castleInvocation) line 11
CastleForwardingInterceptor.Intercept(IInvocation invocation) line 12
AbstractInvocation.Proceed()
ProxyIdInterceptor.Intercept(IInvocation invocation) line 20
AbstractInvocation.Proceed()
ObjectProxy.GetText()
DefaultInterfacesImplementations.DefaultInterface_SetupReturns_UsesReturns() line 18
MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

@304NotModified 304NotModified changed the title Added DefaultInterfacesImplementations Added test for DefaultInterfacesImplementation Mar 7, 2026
@304NotModified 304NotModified requested a review from Romfos March 7, 2026 20:08
@304NotModified 304NotModified mentioned this pull request Mar 7, 2026
26 tasks
@Romfos Romfos merged commit 6ce0bd8 into main Mar 7, 2026
4 checks passed
@304NotModified 304NotModified deleted the DefaultInterfacesImplementations-tests branch March 7, 2026 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants