Launch and call methods on WPF app from unit test project
问题 I would like to launch a WPF app and call methods on the ViewModel to control the app for the purpose of integration testing. Something like: [Test] public void Test1() var application = new MyApp(); application.InitializeComponent(); application.Run(); (OK, this stops the test execution at this point, presumably passing control to the WPF app. Not sure how to deal with this. Launch in a separate thread or something?) Then I'd like to be able to get and set values on the ViewModel, something