-
Notifications
You must be signed in to change notification settings - Fork 21
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
AutoMock Create method cannot find the correct overloaded constructor #31
Labels
Comments
Thanks for raising this. It appears as though the Moq Handler attempts to register the TimeSpan as a service, which is obviously not what you want. When you don't specify the TimeSpan parameter at resolve time, we try to register it, and things go wrong. Some of the filtering applied inside the ACTNAR source we were using before hasn't carried over. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I recently upgraded from 4.3.0 to 5.0.0 and I had a bunch of tests that were passing in version 4.3.0 now fail for 5.0.0.
Here is an example of a class that I was testing, I have removed everything but the constructors:
Here is my unit test:
This is the exception that I get:
The text was updated successfully, but these errors were encountered: