-
-
Notifications
You must be signed in to change notification settings - Fork 802
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
Stack overflow when setting up a property on a mock that references another instance of the same type #161
Comments
vladonemo
added a commit
to vladonemo/moq4
that referenced
this issue
Jan 29, 2016
vladonemo
added a commit
to vladonemo/moq4
that referenced
this issue
May 12, 2016
kzu
pushed a commit
that referenced
this issue
Aug 10, 2016
This appears to have been fixed. The error can no longer be reproduced in Moq 4.7.25. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The following code gives a StackOverflowException in Moq 4.2.1502.911, but not in 4.1.1309.1617:
This appears to be a similar problem to https://code.google.com/p/moq/issues/detail?id=332 , although in this case the result is a stack overflow and not an infinite loop as it appears in that issue.
Using DefaultValue.Empty avoids the problem; however, this may not be a practical solution in our case. The value of MockBehavior does not matter.
The text was updated successfully, but these errors were encountered: