I have a bug that occurs in a low-level system under rare circumstances which results in a StackOverflowException. I've written a test that reproduces the bug, but the test can never run to completion, failure or success, due to the nature of a stack overflow. Test was run using mstest and NUnit.
What can I do to write a test for this scenario, which fails rather than terminates when the stack is busted?
Aucun commentaire:
Enregistrer un commentaire