TestClassTreeNode GetClassNodeFromSelectedMethodNode() { TestMethodTreeNode methodNode = SelectedNode as TestMethodTreeNode; if (methodNode != null) { return(methodNode.Parent as TestClassTreeNode); } return(null); }
public void AddNewMethodNodeWhenTestPassed() { testMethod.Result = TestResultType.Success; TestMethodTreeNode node = new TestMethodTreeNode(testProject, testMethod); Assert.AreEqual(TestTreeViewImageListIndex.TestPassed, (TestTreeViewImageListIndex)node.ImageIndex); }
/// <summary> /// Adds a new TestMethodTreeNode to this node. /// </summary> void AddTestMethodTreeNode(TestMethod method) { TestMethodTreeNode node = new TestMethodTreeNode(TestProject, method); node.AddTo(this); }