/// <summary> /// Run the given KeyInput against the Visual Studio simulation /// </summary> internal void Run(KeyInput keyInput) { using (var context = new TestableSynchronizationContext()) { _vsKeyboardInputSimulation.Run(keyInput); context.RunAll(); } }
/// <summary> /// Run the given KeyInput against the Visual Studio simulation /// </summary> internal void Run(KeyInput keyInput) { _testableSynchronizationContext.Install(); try { _vsKeyboardInputSimulation.Run(keyInput); _testableSynchronizationContext.RunAll(); } finally { _testableSynchronizationContext.Uninstall(); } }
/// <summary> /// Run the given KeyInput against the Visual Studio simulation /// </summary> internal void Run(KeyInput keyInput) { _vsKeyboardInputSimulation.Run(keyInput); Dispatcher.CurrentDispatcher.DoEvents(); }