I am using MSTest, Vs2010. I have a situation where a method with a while loop calls AutoResetEvent.WaitOne. I can trigger this event from my Test method; it will iterate one time and then again wait for this event to be triggered.
I am unable to assert anything in this situation. How can I Unit Test these kind of methods?
Thanks
I would suggest using a
Taskin your unit test to initialise the loop in a separate thread.