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

Protected<T>.Setup fails on specific overloads #341

Closed
80er opened this issue May 5, 2017 · 1 comment
Closed

Protected<T>.Setup fails on specific overloads #341

80er opened this issue May 5, 2017 · 1 comment

Comments

@80er
Copy link
Contributor

80er commented May 5, 2017

Hi,

was it by intention that the commit c8c5db1 broke identification of some overloads?

Up to that one it was possible to have overloads with a base and a derived class. Now the IsAssignableFrom leads to InvalidOperationException in SingleOrDefault as now more then one method is found.

The previous implementation with Type.GetMethod also went for strict parameter type matching.

@stakx
Copy link
Contributor

stakx commented Jun 5, 2017

Closing this issue, since the PR has been merged. The additional overload is available starting with Moq version 4.7.25.

@stakx stakx closed this as completed Jun 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants