2 results found
Mark tests using TestCaseSource as failed if an error in the method providing the TestCaseData fails5 votes
An error occurred while saving the commentJames Nail supported this idea ·
1 voteJames Nail shared this idea ·
I do this exact same thing too. It's not just necessarily TestCaseSource though -- any dynamically generated test cases generally suffer from this. In my case I use AutoFixture's autodata attributes feature, and when something is wrong with one of my tests, NCrunch just stops recognizing that test entirely.
Resharper will still run my test and show me any exceptions that were thrown in test setup.