I have a situation where I use unit test to execute an external tool that runs a test. From the exit code of the instrument, I can determine if the test passed, failed or failed.
Is there a way that I can crash a unit test that sets the test result to a timeout instead of a failed one?
I tried throwing a TimeoutException, but this has the same result as when using Assert.
Edit:
We associate unit tests with test cases in TFS. At the Microsoft Test Center, a test in a test run can have many conditions. One of them is the timeout state. I am trying to fail my test so that it displays correctly in this state and does not fail with unsuccessful test cases.
source
share