When working with some recursive code, you can get into a situation where the code is infinetly recursive, and the resulting StackOverflowException crashes the workers.
Just as a contrived example:
Code:
[Test]
Example_DoesNotStackOverflow()
{
Example("abc");
}
private void Example(string foo)
{
if (string.IsNullOrEmpty(foo)) return;
foo = foo.Remove(0, 1); // Commenting out this line (even for a tiny fraction of a second) causes NCrunch workers to explode.
Example(foo);
}
I have no problem with the tests failing in that case, but I don't think that it is a good thing to have the test worker processes exploding and bringing up Windows Error Reporting boxes.