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
System.MissingMethodException
HResult=0x80131513
Message=Method not found: 'Void ConsoleApp1.Foo.Virtual(ConsoleApp1.Bar`1<Int32> ByRef)'.
Source=DynamicProxyGenAssembly2
StackTrace:
at Castle.Proxies.FooProxy.Virtual[T](Bar`1& bar)
at ConsoleApp1.Foo.Run() in D:\temp\ConsoleApp1\ConsoleApp1\Program.cs:line 21
at ConsoleApp1.Program.Main(String[] args) in D:\temp\ConsoleApp1\ConsoleApp1\Program.cs:line 13
Seems that the combination of a generic struct and an in parameter confuses moq somewhere.
The text was updated successfully, but these errors were encountered:
Small update: It appears that updating to .NET 6 (once released) will take care of this problem. The issue described above is no longer reproducible on .NET 6 Preview.
Repro (moq 4.13.1):
Throws exception:
Seems that the combination of a generic struct and an
in
parameter confuses moq somewhere.The text was updated successfully, but these errors were encountered: