예제 #1
0
        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);
		}
예제 #3
0
        /// <summary>
        /// Adds a new TestMethodTreeNode to this node.
        /// </summary>
        void AddTestMethodTreeNode(TestMethod method)
        {
            TestMethodTreeNode node = new TestMethodTreeNode(TestProject, method);

            node.AddTo(this);
        }
		/// <summary>
		/// Adds a new TestMethodTreeNode to this node.
		/// </summary>
		void AddTestMethodTreeNode(TestMethod method)
		{
			TestMethodTreeNode node = new TestMethodTreeNode(TestProject, method);
			node.AddTo(this);
		}