예제 #1
0
 public OpenTestSuiteEventArgs(TestSuite testSuite)
 {
     _testSuite = testSuite;
 }
예제 #2
0
파일: IDEForm.cs 프로젝트: robin5/DemiTasse
        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;
        }