Ejemplo n.º 1
0
        private void events_TestReloaded(object sender, NUnit.Core.TestEventArgs args)
        {
            // Get new list of available categories
            availableCategories = AppUI.TestLoader.GetCategories();

            // Remove any selected items that are no longer available
            int index = selectedList.Items.Count;

            selectedList.SuspendLayout();
            while (--index >= 0)
            {
                string category = selectedList.Items[index].ToString();
                if (!availableCategories.Contains(category))
                {
                    selectedList.Items.RemoveAt(index);
                }
            }
            selectedList.ResumeLayout();

            // Put any unselected available items availableList
            availableList.Items.Clear();
            availableList.SuspendLayout();
            foreach (string category in availableCategories)
            {
                if (selectedList.FindStringExact(category) < 0)
                {
                    availableList.Items.Add(category);
                }
            }
            availableList.ResumeLayout();

            // Tell the tree what is selected
            tests.SelectedCategories = this.SelectedCategories;
        }
Ejemplo n.º 2
0
        private void events_TestLoaded(object sender, NUnit.Core.TestEventArgs args)
        {
            viewMenu.Visible = true;

            availableCategories = AppUI.TestLoader.GetCategories();
            availableList.Items.Clear();
            selectedList.Items.Clear();

            availableList.SuspendLayout();
            foreach (string category in availableCategories)
            {
                availableList.Items.Add(category);
            }
            availableList.ResumeLayout();
        }
Ejemplo n.º 3
0
 private void Events_TestUnloaded(object sender, NUnit.Core.TestEventArgs args)
 {
     viewMenu.Visible = false;
 }