public void Paste(string text)
 {
     Invoke(() => {
         Clipboard.SetText(text, TextDataFormat.Text);
     });
     _app.ExecuteCommand("Edit.Paste");
 }
 public void ClearScreen(bool waitForReady = true)
 {
     Console.WriteLine("REPL Clearing screen");
     if (waitForReady)
     {
         ReadyForInput.Reset();
     }
     _app.ExecuteCommand(CommandBase + "ClearScreen");
     if (waitForReady)
     {
         Assert.IsTrue(ReadyForInput.WaitOne(1000));
     }
 }
Пример #3
0
 private void ShowLightBulb()
 {
     Task.Run(() => {
         for (int i = 0; i < 40; i++)
         {
             try {
                 VisualStudioApp.ExecuteCommand("View.ShowSmartTag");
                 break;
             } catch {
                 Thread.Sleep(250);
             }
         }
     }).Wait();
 }
Пример #4
0
 /// <summary>
 /// Copies the selected test details to the clipboard.
 /// </summary>
 private void CopyDetails()
 {
     _app.WaitForCommandAvailable(TestCommands.CopyDetails, TimeSpan.FromSeconds(2));
     _app.ExecuteCommand(TestCommands.CopyDetails);
 }
Пример #5
0
 public void ExecuteCommand(string command)
 {
     App.ExecuteCommand(command);
 }