Esempio n. 1
0
        public void Ignore(Guid pipeIdentifier)
        {
            int imageIndex = ReflectionImageList.ImageIndex(TestNodeType.Test, TestState.Ignored);

            IEnumerable nodes = this.pipeNodes[pipeIdentifier] as IEnumerable;

            if (nodes == null)
            {
                throw new InvalidOperationException("pipe not found");
            }
            foreach (UnitTreeNode node in nodes)
            {
                node.TestState = TestState.Ignored;

                UnitTreeNode parent = node.Parent as UnitTreeNode;
                while (parent != null)
                {
                    if (parent.TestState != TestState.Failure)
                    {
                        parent.TestState = TestState.Ignored;
                    }
                    else
                    {
                        break;
                    }
                    parent = parent.Parent as UnitTreeNode;
                }
            }
        }
Esempio n. 2
0
        public void Start(Guid pipeIdentifier)
        {
            int imageIndex = ReflectionImageList.ImageIndex(TestNodeType.Test, TestState.Running);

            IEnumerable nodes = this.pipeNodes[pipeIdentifier] as IEnumerable;

            if (nodes == null)
            {
                throw new InvalidOperationException("pipe not found");
            }
            foreach (UnitTreeNode node in nodes)
            {
                node.TestState = TestState.NotRun;
            }
        }
        public ReflectorTreeView()
        {
            this.testDomains=new TreeTestDomainCollection(this);
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            Application.AddMessageFilter(this);
            DragAcceptFiles(this.Handle, true);

            this.state = new UnitTreeViewState(this.typeTree,
                new UnitTreeViewState.UpdateTreeNodeDelegate(this.UpdateNode)
                );

            this.treeNodeFacade= new TestTreeNodeFacade();
            this.reflectionImageList = new ReflectionImageList(this.treeImageList);

            this.createNode = new UnitTreeNodeCreatorDelegate(this.CreateNode);
            this.addChildNode = new AddChildNodeDelegate(this.AddChildNode);

            this.testDomains.Watcher.AssemblyChangedEvent+=new MbUnit.Core.Remoting.AssemblyWatcher.AssemblyChangedHandler(Watcher_AssemblyChangedEvent);

            this.SetStyle(ControlStyles.DoubleBuffer,true);
            this.SetStyle(ControlStyles.ResizeRedraw,true);
        }
Esempio n. 4
0
 public void UpdateImageIndices()
 {
     this.ImageIndex         = ReflectionImageList.ImageIndex(this.testNodeType, this.testState);
     this.SelectedImageIndex = this.ImageIndex;
 }