📄 nunitform.cs
字号:
//
// projectMenuSeparator2
//
this.projectMenuSeparator2.Index = 4;
this.projectMenuSeparator2.Text = "-";
//
// editProjectMenuItem
//
this.editProjectMenuItem.Index = 5;
this.editProjectMenuItem.Text = "Edit...";
this.editProjectMenuItem.Click += new System.EventHandler(this.editProjectMenuItem_Click);
//
// toolsMenu
//
this.toolsMenu.Index = 2;
this.toolsMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.saveXmlResultsMenuItem,
this.exceptionDetailsMenuItem,
this.toolsMenuSeparator1,
this.optionsMenuItem});
this.toolsMenu.Text = "&Tools";
this.toolsMenu.Popup += new System.EventHandler(this.toolsMenu_Popup);
//
// saveXmlResultsMenuItem
//
this.saveXmlResultsMenuItem.Index = 0;
this.saveXmlResultsMenuItem.Text = "&Save Results as XML...";
this.saveXmlResultsMenuItem.Click += new System.EventHandler(this.saveXmlResultsMenuItem_Click);
//
// exceptionDetailsMenuItem
//
this.exceptionDetailsMenuItem.Index = 1;
this.exceptionDetailsMenuItem.Text = "&Exception Details...";
this.exceptionDetailsMenuItem.Click += new System.EventHandler(this.exceptionDetailsMenuItem_Click);
//
// toolsMenuSeparator1
//
this.toolsMenuSeparator1.Index = 2;
this.toolsMenuSeparator1.Text = "-";
//
// optionsMenuItem
//
this.optionsMenuItem.Index = 3;
this.optionsMenuItem.Text = "&Options...";
this.optionsMenuItem.Click += new System.EventHandler(this.optionsMenuItem_Click);
//
// helpItem
//
this.helpItem.Index = 3;
this.helpItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.helpMenuItem,
this.helpMenuSeparator1,
this.aboutMenuItem});
this.helpItem.Text = "&Help";
//
// helpMenuItem
//
this.helpMenuItem.Index = 0;
this.helpMenuItem.Shortcut = System.Windows.Forms.Shortcut.F1;
this.helpMenuItem.Text = "NUnit &Help...";
this.helpMenuItem.Click += new System.EventHandler(this.helpMenuItem_Click);
//
// helpMenuSeparator1
//
this.helpMenuSeparator1.Index = 1;
this.helpMenuSeparator1.Text = "-";
//
// aboutMenuItem
//
this.aboutMenuItem.Index = 2;
this.aboutMenuItem.Text = "&About NUnit...";
this.aboutMenuItem.Click += new System.EventHandler(this.aboutMenuItem_Click);
//
// splitter1
//
this.splitter1.Location = new System.Drawing.Point(200, 0);
this.splitter1.MinSize = 240;
this.splitter1.Name = "splitter1";
this.splitter1.Size = new System.Drawing.Size(5, 497);
this.splitter1.TabIndex = 2;
this.splitter1.TabStop = false;
//
// panel1
//
this.panel1.Controls.Add(this.resultTabs);
this.panel1.Controls.Add(this.groupBox1);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(205, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(418, 497);
this.panel1.TabIndex = 3;
//
// resultTabs
//
this.resultTabs.Controls.Add(this.errorPage);
this.resultTabs.Controls.Add(this.testsNotRun);
this.resultTabs.Controls.Add(this.stderr);
this.resultTabs.Controls.Add(this.stdout);
this.resultTabs.Dock = System.Windows.Forms.DockStyle.Fill;
this.resultTabs.Location = new System.Drawing.Point(0, 88);
this.resultTabs.Name = "resultTabs";
this.resultTabs.SelectedIndex = 0;
this.resultTabs.Size = new System.Drawing.Size(418, 409);
this.resultTabs.TabIndex = 2;
//
// errorPage
//
this.errorPage.Controls.Add(this.stackTrace);
this.errorPage.Controls.Add(this.splitter3);
this.errorPage.Controls.Add(this.detailList);
this.errorPage.Location = new System.Drawing.Point(4, 22);
this.errorPage.Name = "errorPage";
this.errorPage.Size = new System.Drawing.Size(410, 383);
this.errorPage.TabIndex = 0;
this.errorPage.Text = "Errors and Failures";
//
// stackTrace
//
this.stackTrace.Dock = System.Windows.Forms.DockStyle.Fill;
this.stackTrace.Font = new System.Drawing.Font("Courier New", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.stackTrace.Location = new System.Drawing.Point(0, 127);
this.stackTrace.Multiline = true;
this.stackTrace.Name = "stackTrace";
this.stackTrace.ReadOnly = true;
this.stackTrace.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.stackTrace.Size = new System.Drawing.Size(410, 256);
this.stackTrace.TabIndex = 2;
this.stackTrace.Text = "";
this.stackTrace.WordWrap = false;
//
// splitter3
//
this.splitter3.Dock = System.Windows.Forms.DockStyle.Top;
this.splitter3.Location = new System.Drawing.Point(0, 124);
this.splitter3.MinSize = 100;
this.splitter3.Name = "splitter3";
this.splitter3.Size = new System.Drawing.Size(410, 3);
this.splitter3.TabIndex = 1;
this.splitter3.TabStop = false;
//
// detailList
//
this.detailList.Dock = System.Windows.Forms.DockStyle.Top;
this.detailList.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable;
this.detailList.Font = new System.Drawing.Font("Lucida Console", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.detailList.HorizontalExtent = 2000;
this.detailList.HorizontalScrollbar = true;
this.detailList.ItemHeight = 16;
this.detailList.Location = new System.Drawing.Point(0, 0);
this.detailList.Name = "detailList";
this.detailList.ScrollAlwaysVisible = true;
this.detailList.Size = new System.Drawing.Size(410, 124);
this.detailList.TabIndex = 0;
this.detailList.MouseHover += new System.EventHandler(this.detailList_MouseHover);
this.detailList.MeasureItem += new System.Windows.Forms.MeasureItemEventHandler(this.detailList_MeasureItem);
this.detailList.MouseMove += new System.Windows.Forms.MouseEventHandler(this.detailList_MouseMove);
this.detailList.MouseLeave += new System.EventHandler(this.detailList_MouseLeave);
this.detailList.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.detailList_DrawItem);
this.detailList.SelectedIndexChanged += new System.EventHandler(this.detailList_SelectedIndexChanged);
//
// testsNotRun
//
this.testsNotRun.Controls.Add(this.notRunTree);
this.testsNotRun.Location = new System.Drawing.Point(4, 22);
this.testsNotRun.Name = "testsNotRun";
this.testsNotRun.Size = new System.Drawing.Size(410, 383);
this.testsNotRun.TabIndex = 1;
this.testsNotRun.Text = "Tests Not Run";
//
// notRunTree
//
this.notRunTree.Dock = System.Windows.Forms.DockStyle.Fill;
this.notRunTree.ImageIndex = -1;
this.notRunTree.Location = new System.Drawing.Point(0, 0);
this.notRunTree.Name = "notRunTree";
this.notRunTree.SelectedImageIndex = -1;
this.notRunTree.Size = new System.Drawing.Size(410, 383);
this.notRunTree.TabIndex = 0;
//
// stderr
//
this.stderr.Controls.Add(this.stdErrTab);
this.stderr.Location = new System.Drawing.Point(4, 22);
this.stderr.Name = "stderr";
this.stderr.Size = new System.Drawing.Size(410, 383);
this.stderr.TabIndex = 2;
this.stderr.Text = "Console.Error";
//
// stdErrTab
//
this.stdErrTab.Dock = System.Windows.Forms.DockStyle.Fill;
this.stdErrTab.Font = new System.Drawing.Font("Courier New", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.stdErrTab.Location = new System.Drawing.Point(0, 0);
this.stdErrTab.Name = "stdErrTab";
this.stdErrTab.ReadOnly = true;
this.stdErrTab.Size = new System.Drawing.Size(410, 383);
this.stdErrTab.TabIndex = 0;
this.stdErrTab.Text = "";
this.stdErrTab.WordWrap = false;
//
// stdout
//
this.stdout.Controls.Add(this.stdOutTab);
this.stdout.Location = new System.Drawing.Point(4, 22);
this.stdout.Name = "stdout";
this.stdout.Size = new System.Drawing.Size(410, 383);
this.stdout.TabIndex = 3;
this.stdout.Text = "Console.Out";
//
// stdOutTab
//
this.stdOutTab.Dock = System.Windows.Forms.DockStyle.Fill;
this.stdOutTab.Font = new System.Drawing.Font("Courier New", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.stdOutTab.Location = new System.Drawing.Point(0, 0);
this.stdOutTab.Name = "stdOutTab";
this.stdOutTab.ReadOnly = true;
this.stdOutTab.Size = new System.Drawing.Size(410, 383);
this.stdOutTab.TabIndex = 0;
this.stdOutTab.Text = "";
this.stdOutTab.WordWrap = false;
//
// groupBox1
//
this.groupBox1.Controls.Add(this.stopButton);
this.groupBox1.Controls.Add(this.runButton);
this.groupBox1.Controls.Add(this.suiteName);
this.groupBox1.Controls.Add(this.progressBar);
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Top;
this.groupBox1.Location = new System.Drawing.Point(0, 0);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(418, 88);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
//
// stopButton
//
this.stopButton.Location = new System.Drawing.Point(94, 16);
this.stopButton.Name = "stopButton";
this.stopButton.Size = new System.Drawing.Size(73, 31);
this.stopButton.TabIndex = 4;
this.stopButton.Text = "&Stop";
this.stopButton.Click += new System.EventHandler(this.stopButton_Click);
//
// runButton
//
this.runButton.Location = new System.Drawing.Point(7, 16);
this.runButton.Name = "runButton";
this.runButton.Size = new System.Drawing.Size(74, 31);
this.runButton.TabIndex = 3;
this.runButton.Text = "&Run";
this.runButton.Click += new System.EventHandler(this.runButton_Click);
//
// suiteName
//
this.suiteName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.suiteName.Location = new System.Drawing.Point(179, 24);
this.suiteName.Name = "suiteName";
this.suiteName.Size = new System.Drawing.Size(231, 25);
this.suiteName.TabIndex = 2;
//
// progressBar
//
this.progressBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.progressBar.CausesValidation = false;
this.progressBar.Enabled = false;
this.progressBar.ForeColor = System.Drawing.SystemColors.Highlight;
this.progressBar.Location = new System.Drawing.Point(7, 56);
this.progressBar.Maximum = 100;
this.progressBar.Minimum = 0;
this.progressBar.Name = "progressBar";
this.progressBar.Size = new System.Drawing.Size(403, 25);
this.progressBar.Step = 1;
this.progressBar.TabIndex = 0;
this.progressBar.Value = 0;
//
// detailListContextMenu
//
this.detailListContextMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
this.copyDetailMenuItem});
//
// copyDetailMenuItem
//
this.copyDetailMenuItem.Index = 0;
this.copyDetailMenuItem.Text = "Copy";
this.copyDetailMenuItem.Click += new System.EventHandler(this.copyDetailMenuItem_Click);
//
// testTree
//
this.testTree.Dock = System.Windows.Forms.DockStyle.Fill;
this.testTree.Location = new System.Drawing.Point(0, 0);
this.testTree.Name = "testTree";
this.testTree.Size = new System.Drawing.Size(200, 497);
this.testTree.TabIndex = 0;
this.testTree.SelectedTestsChanged += new NUnit.UiKit.SelectedTestsChangedEventHandler(this.testTree_SelectedTestsChanged);
//
// panel2
//
this.panel2.Controls.Add(this.testTree);
this.panel2.Dock = System.Windows.Forms.DockStyle.Left;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(200, 497);
this.panel2.TabIndex = 4;
//
// NUnitForm
//
this.AcceptButton = this.runButton;
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(623, 529);
this.Controls.Add(this.panel1);
this.Controls.Add(this.splitter1);
this.Controls.Add(this.panel2);
this.Controls.Add(this.statusBar);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Menu = this.mainMenu;
this.MinimumSize = new System.Drawing.Size(160, 32);
this.Name = "NUnitForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
this.Text = "NUnit";
this.Closing += new System.ComponentModel.CancelEventHandler(this.NUnitForm_Closing);
this.Load += new System.EventHandler(this.NUnitForm_Load);
this.panel1.ResumeLayout(false);
this.resultTabs.ResumeLayout(false);
this.errorPage.ResumeLayout(false);
this.testsNotRun.ResumeLayout(false);
this.stderr.ResumeLayout(false);
this.stdout.ResumeLayout(false);
this.groupBox1.ResumeLayout(false);
this.panel2.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
#region Properties used internally
private TestLoader TestLoader
{
get { return AppUI.TestLoader; }
}
private TestLoaderUI TestLoaderUI
{
get { return AppUI.TestLoaderUI; }
}
private bool IsProjectLoaded
{
get { return TestLoader.IsProjectLoaded; }
}
private NUnitProject TestProject
{
get { return TestLoader.TestProject; }
}
private bool IsTestLoaded
{
get { return TestLoader.IsTestLoaded; }
}
private bool IsTestRunning
{
get { return TestLoader.IsTestRunning; }
}
#endregion
#region File Menu Handlers
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -