Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to mock protected generic method #249

Closed
mattzink opened this issue Feb 16, 2016 · 1 comment
Closed

Unable to mock protected generic method #249

mattzink opened this issue Feb 16, 2016 · 1 comment
Assignees
Milestone

Comments

@mattzink
Copy link

It is not possible to currently mock a protected method that has generic type parameters.

protected virtual TEntity GetEntityByName<TEntity>(string name)

Related question on StackOverflow

@Prashantpola
Copy link

Is there any way to mock protected generic method of base class from which is calling from child.
I am calling base method from child class as below
this.ExecuteHttpPutCall<ClassT, ServiceResult<IEnumerable>>(url, request,handler)

@devlooped devlooped locked and limited conversation to collaborators Sep 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants