示例#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;
                }
            }
        }
示例#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;
            }
        }
示例#3
0
 public void UpdateImageIndices()
 {
     this.ImageIndex         = ReflectionImageList.ImageIndex(this.testNodeType, this.testState);
     this.SelectedImageIndex = this.ImageIndex;
 }