Skip to content
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

System.ArgumentException: Interface not found in v.4.13.0 but not before. #942

Closed
vslynko opened this issue Oct 17, 2019 · 1 comment · Fixed by #944
Closed

System.ArgumentException: Interface not found in v.4.13.0 but not before. #942

vslynko opened this issue Oct 17, 2019 · 1 comment · Fixed by #944
Labels
Milestone

Comments

@vslynko
Copy link

vslynko commented Oct 17, 2019

Full sample available Gist
Debug build for net472
Exception thrown for me

System.ArgumentException: Interface not found.
   at System.RuntimeTypeHandle.VerifyInterfaceIsImplemented(RuntimeTypeHandle handle, RuntimeTypeHandle interfaceHandle)
   at System.RuntimeType.GetInterfaceMap(Type ifaceType)
   at Moq.Extensions.GetImplementingMethod(MethodInfo method, Type proxyType)
   at Moq.InvocationShape.IsOverride(Invocation invocation)
   at Moq.InvocationShape.IsMatch(Invocation invocation)
   at Moq.Setup.Matches(Invocation invocation)
   at Moq.SetupCollection.FindMatchFor(Invocation invocation)
   at Moq.FindAndExecuteMatchingSetup.Handle(Invocation invocation, Mock mock)
   at Moq.Mock.Moq.IInterceptor.Intercept(Invocation invocation)
   at Moq.Internals.InterfaceProxy.ToString()
   at MoqRegressionSample.MoqIssue.Fails() in C:\src\wavecontrol\src\WAVE.Device.Com.Tests\DeviceLink\MoqIssue.cs:line 33

image

@stakx stakx added the bug label Oct 17, 2019
@stakx stakx added this to the 4.13.1 milestone Oct 17, 2019
@stakx
Copy link
Contributor

stakx commented Oct 17, 2019

Thanks for reporting, @vslynko. That's indeed a regression in 4.13.0. Fortunately one that is very easily fixed. Look out for the version 4.13.1 release, which should be ready during the next 10 days or so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants