private void RunFormTest(Func <FormPull, Task> testDriverAsync, string remoteBranch, string remote, AppSettings.PullAction pullAction)
 {
     UITest.RunForm(
         () =>
     {
         // False because we haven't performed any actions
         Assert.False(_commands.StartPullDialog(owner: null, remoteBranch: remoteBranch, remote: remote, pullAction: pullAction));
     },
         testDriverAsync);
 }
Example #2
0
 private void Pull_Click(object sender, EventArgs e)
 {
     var submodule = Module.GetSubmodule(SubModuleLocalPath.Text);
     if (submodule == null)
         return;
     GitUICommands uiCommands = new GitUICommands(submodule);
     uiCommands.StartPullDialog(this);
     UseWaitCursor = true;
     Initialize();
     UseWaitCursor = false;
 }
Example #3
0
 private void Pull_Click(object sender, EventArgs e)
 {
     var submodule = Module.GetSubmodule(SubModuleLocalPath.Text);
     if (submodule == null)
         return;
     GitUICommands uiCommands = new GitUICommands(submodule);
     uiCommands.StartPullDialog(this);
     UseWaitCursor = true;
     Initialize();
     UseWaitCursor = false;
 }