Skip to content
This repository has been archived by the owner on Oct 21, 2018. It is now read-only.

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

Open
Jestar342 opened this issue Nov 17, 2016 · 0 comments

Comments

@Jestar342
Copy link

Jestar342 commented Nov 17, 2016

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 Jestar342 changed the title "Cannot set Parent to interface" when automocking with complex generics. "Cannot set parent to an interface." when automocking with complex generics. Nov 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant