private void SendAndQuitButton_Click(object sender, EventArgs e) { if (DialogResult.No == MessageBox.Show(this, @"Give as much as information as possible please to help the developers solve this issue. Otherwise, your issue ticket may be closed without any follow-up from the developers. Because of this, make sure to fill in all the fields in the report template please. Send report anyway?", "Error Report", MessageBoxButtons.YesNo, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button2)) { return; } string url = UrlBuilder.Build("https://github.com/gitextensions/gitextensions/issues/new", _lastException.OriginalException, descriptionTextBox.Text); Process.Start(url); _uiDialogResult = new UIDialogResult(ExecutionFlow.BreakExecution, SendReport.DoNotSend); Close(); }
public void Build_should_return_null_if_url_unset(string url) { _gitHubUrlBuilder.Build(url, null, null).Should().BeNull(); }