public OpenTestSuiteEventArgs(TestSuite testSuite) { _testSuite = testSuite; }
private void App_OnOpenTestSuite(object sender, OpenTestSuiteEventArgs e) { TreeNode node; try { this.Text = Application.ProductName + " - " + e.TestSuite.Name; //txtFile.Text = ""; IDEMode = IDEModes.TestSuite; ClearAllFileTabs(); tvFiles.Nodes.Clear(); node = tvFiles.Nodes.Add(e.TestSuite.Name); node.Tag = null; AddSuite(node, (_testSuite = e.TestSuite).Items); } catch (Exception ex) { DisplayException(ex); } }
public TestSuite Create(string name) { if (_testSuites.ContainsKey(name)) { throw new AppUserErrorException("Suite name already exists: " + name); } TestSuite testSuite = new TestSuite(name); _testSuites.Add(name, testSuite); return testSuite; }