Ejemplo n.º 1
0
        TestClassTreeNode GetClassNodeFromSelectedMemberNode()
        {
            TestMemberTreeNode memberNode = SelectedNode as TestMemberTreeNode;

            if (memberNode != null)
            {
                return(memberNode.Parent as TestClassTreeNode);
            }
            return(null);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Adds a new TestMemberTreeNode to this node.
        /// </summary>
        void AddTestMemberTreeNode(TestMember member)
        {
            TestMemberTreeNode node = new TestMemberTreeNode(TestProject, member);

            node.AddTo(this);
        }
Ejemplo n.º 3
0
		/// <summary>
		/// Adds a new TestMemberTreeNode to this node.
		/// </summary>
		void AddTestMemberTreeNode(TestMember member)
		{
			TestMemberTreeNode node = new TestMemberTreeNode(TestProject, member);
			node.AddTo(this);
		}
		public void AddNewMethodNodeWhenTestPassed()
		{
			testMethod.Result = TestResultType.Success;
			TestMemberTreeNode node = new TestMemberTreeNode(testProject, testMethod);
			Assert.AreEqual(TestTreeViewImageListIndex.TestPassed, (TestTreeViewImageListIndex)node.ImageIndex);
		}