Ejemplo n.º 1
0
 /// <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();
     }
 }
Ejemplo n.º 2
0
 /// <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();
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Run the given KeyInput against the Visual Studio simulation
 /// </summary>
 internal void Run(KeyInput keyInput)
 {
     _vsKeyboardInputSimulation.Run(keyInput);
     Dispatcher.CurrentDispatcher.DoEvents();
 }