I am testing a WPF application that needs to open after services are started. I have written another application that starts the services and then the WPF application (application under test) and I used this launcher as my startup application. The problem is, that my tests fail because the WPF MainWindow window is yet available. Does this WPF MainWindow need to be a child of the startup application? Is there a way to make the test application wait for the MainWindow to launch?
The reason why I am doing it this way, is that I need to restart the services and application after each test, and not just the wpf test. Any suggestions?