rhino-mocks icon indicating copy to clipboard operation
rhino-mocks copied to clipboard

"Cannot set parent to an interface." when automocking with complex generics.

Open Jestar342 opened this issue 7 years ago • 0 comments

When automocking a class that has a dependency on a complex generic, and the generic type is an interface, this error is raised.

e.g. automocking this class produces said error:

public class SomeClass
{
  public SomeClass(IInterfaceWithGeneric<IAnotherInterface> dependency)
  {
    /* etc */
  }
}

see also: https://groups.google.com/forum/#!topic/rhinomocks/tx7PCkQRxqs

Jestar342 avatar Nov 17 '16 15:11 Jestar342