We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following code gives a StackOverflowException in Moq 4.2.1502.911, but not in 4.1.1309.1617:
public interface IFoo { IBar Bar { get; } } public interface IBar { IBar SomeOtherBar { get; } string ATC { get; } } [TestMethod] public void SomeTest() { var factory = new MockRepository(MockBehavior.Strict){DefaultValue = DefaultValue.Mock}; var foo = factory.Create<IFoo>(); foo.SetupGet(r => r.Bar.ATC).Returns("asjkhsd"); // boom }
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:
Issues devlooped#161 and devlooped#163
1bb17d2
0be57b8
Fixing issues #161 and #163 (#245)
ca7e8db
This appears to have been fixed. The error can no longer be reproduced in Moq 4.7.25.
Sorry, something went wrong.
No branches or pull requests
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: