Exemple #1
0
 protected void OnOpenTestSuite(OpenTestSuiteEventArgs e)
 {
     if (OnOpenTestSuiteHandler != null)
         OnOpenTestSuiteHandler(this, e);
 }
Exemple #2
0
        public void RemoveTestSuiteFile(string name, int index)
        {
            try
            {
                _testSuiteManager.RemoveTestSuiteFile(name, index);

                //OnAddTestSuiteFile(new AddTestSuiteFileEventArgs(fileNames));

                OpenTestSuiteEventArgs e = new OpenTestSuiteEventArgs(_testSuiteManager.TestSuites[name]);
                OnOpenTestSuite(e);
            }
            catch (Exception ex)
            {
                OnAppException(new AppExceptionEventArgs(ex));
            }
        }
Exemple #3
0
 public void NewTestSuite(string name)
 {
     try
     {
         OpenTestSuiteEventArgs e = new OpenTestSuiteEventArgs(_testSuiteManager.Create(name));
         OnOpenTestSuite(e);
     }
     catch (AppUserErrorException ex)
     {
         OnAppError(new AppErrorEventArgs(ex.Message));
     }
     catch (Exception ex)
     {
         OnAppException(new AppExceptionEventArgs(ex));
     }
 }
Exemple #4
0
 public void OpenTestSuite(string name)
 {
     try
     {
         OpenTestSuiteEventArgs e = new OpenTestSuiteEventArgs(_testSuiteManager.TestSuites[name]);
         OnOpenTestSuite(e);
     }
     catch (Exception ex)
     {
         OnAppError(new AppErrorEventArgs(ex.Message));
     }
 }
Exemple #5
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);
            }
        }