HI,
I tried to create mock of difficult custom type, but I always have an exception like
“System.TypeLoadException: System.TypeLoadException: Method 'UnloadRecursive' on type 'BaseProxy+...' from assembly 'Telerik.JustMock.Dynamic, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is overriding a method that is not visible from that assembly..”
I tried to use attribute InternalsVisibleTo like <Assembly: InternalsVisibleTo("Telerik.JustMock.Dynamic")> but it didn't solve the problem. I tried to create mock of parent types, all fine. I tried to use MockingContainer, but this no matter, because our type haven't external dependencies. I can't to find where the problem.
What you can to suggest me?
Thanks
I tried to create mock of difficult custom type, but I always have an exception like
“System.TypeLoadException: System.TypeLoadException: Method 'UnloadRecursive' on type 'BaseProxy+...' from assembly 'Telerik.JustMock.Dynamic, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is overriding a method that is not visible from that assembly..”
I tried to use attribute InternalsVisibleTo like <Assembly: InternalsVisibleTo("Telerik.JustMock.Dynamic")> but it didn't solve the problem. I tried to create mock of parent types, all fine. I tried to use MockingContainer, but this no matter, because our type haven't external dependencies. I can't to find where the problem.
What you can to suggest me?
Thanks