I am working on new functionality for a large C# project which is mostly legacy code.
The area that I’m working on handles XML schema messages, creates a schedule for their transmission and places them into some legacy timer code which notifies me when they should be sent.
Although I am new to them, Visual Studio test projects are proving useful in that I can test my code without trying to get the full system up and running (which can take upto 30 minutes on the test hardware!).
I have statically tested my event handling code, but would now like to do so dynamically.
Is this possible? If so how do I go about getting the test project to wait for the event without timing out?
If I understand you correctly, you could use a wait handle to signal the event and have your test project wait for the event handle to be signaled.