Пример #1
0
 public OpenTestSuiteEventArgs(TestSuite testSuite)
 {
     _testSuite = testSuite;
 }
Пример #2
0
        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);
            }
        }
Пример #3
0
        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;
        }