ClassInitialize
(1)
ClassCleanup
(1)
Breakpoint
(1)
Pauses
(1)
Ceases
(1)

ClassCleanup timeout?

Asked By Frank Robij
06-Jul-08 01:02 PM
I've created a method marked with [ClassCleanup] to clean up after Vs2008
(Pro) has run a set of unit tests. The method stops some services that have
been started in the [ClassInitialize] method. The method itself works fine -
I can call it from within a unit test and it will execute as expected.

However, if it takes too much time to execute the method, the ClassCleanup
method does not run completely. This is also true if I try to debug the
method - if the VS IDE pauses too long at a breakpoint, the unit test simply
ceases to run on the F10 instead of stepping to the next line of code.

Apparently the IDE (or whatever program is running the unit tests) waits
only a limited time for the cleanup code to finish. If that's the case, how
can I change its duration? If there is no such thing, how can I prevent the
ClassCleanup method from aborting prematurely?

Frank

ClassCleanup timeout?

Asked By pinaus pinaus
27-Jan-09 10:59 AM
I have the same problem. Did you solve it?
Please, if you solved, can you help me?

Antonio.
Post Question To EggHeadCafe