I'm writing a class library with .NET Core and I'm using interception (DispatchProxy) for handling cross-cutting concerns.
Now I have the problem that when unit testing the decorated object I get the following Exception:
Exception thrown: 'System.MissingMethodException' in System.Private.CoreLib.dll
Exception thrown: 'System.Exception' in FakeItEasy.dll
Exception thrown: 'System.Reflection.TargetInvocationException' in System.Private.CoreLib.dll
Also when debugging I noticed that a specific method of a dynamically generated object (which is mocked with FakeItEasy) is not executed.
Is the problem that you can't mock dynamic generated objects? Or maybe that FakeItEasy is itself using interception with Castle.DynamicProxy?