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