rhino-mocks
rhino-mocks copied to clipboard
"Cannot set parent to an interface." when automocking with complex generics.
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