By alashcraft
via codebetter.com
Published: Oct 10 2008 / 09:33
I ran into a variation on an old threading problem the other day that I found nearly impossible to unit test. When I say impossible, getting my test scenario to succeed meant the guaranteed setting of two threading primitives before a WaitHandle evaluation occurred. Getting this to run properly every time requires some fancy test code which is where I stop and say to myself - "there has to be a better approach."





Add your comment