-
Notifications
You must be signed in to change notification settings - Fork 27
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 with Custom Spec #3
Comments
Hi, stroebele. |
I created a PR #4 with a unit test that recreates the issue for me. I wish there was a better way of catching the error. |
I can not reproduce the exception. I have run your test with both TestDriven.NET and Microsoft Test Explorer. And in truth, I generally do not understand where StackoverflowException can comes from when execution is suspendedat the breakpoint, because LinqSpecs is a single-threaded library (threads and tasks are not used). Also Specification class has no constructor and static fields. Could this be a bug of the test runner you are using? Which runner you are using? May be ReSharper?.. it is very bugged.. Try another test runner please. And post a complete exception message including a stacktrace please. |
You nailed it, Resharper was the problem. Even using MS Test Explorer would cause a crash, however once Resharper was completely disabled, everything worked fine. Thanks for your help. |
OK, thanks. |
I've created a custom spec class similar to the "CustomerFromCountrySpec" in the README.md. When I create my custom class, within a second or two I get a stack overflow.
Here's my class:
Here's my test method
The text was updated successfully, but these errors were encountered: