当前位置: 首页>>代码示例>>C#>>正文


C# TestSuiteTreeNode.Expand方法代码示例

本文整理汇总了C#中NUnit.UiKit.TestSuiteTreeNode.Expand方法的典型用法代码示例。如果您正苦于以下问题:C# TestSuiteTreeNode.Expand方法的具体用法?C# TestSuiteTreeNode.Expand怎么用?C# TestSuiteTreeNode.Expand使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在NUnit.UiKit.TestSuiteTreeNode的用法示例。


在下文中一共展示了TestSuiteTreeNode.Expand方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: HideTestsUnderNode

        /// <summary>
        /// Helper collapses all fixtures under a node
        /// </summary>
        /// <param name="node">Node under which to collapse fixtures</param>
        private void HideTestsUnderNode( TestSuiteTreeNode node )
        {
            bool expand = false;
            foreach( TestSuiteTreeNode child in node.Nodes )
                if ( child.Test.IsSuite )
                {
                    expand = true;
                    HideTestsUnderNode( child );
                }

            if ( expand )
                node.Expand();
            else
                node.Collapse();
        }
开发者ID:scottwis,项目名称:eddie,代码行数:19,代码来源:TestSuiteTreeView.cs

示例2: HideTestsUnderNode

		/// <summary>
		/// Helper collapses all fixtures under a node
		/// </summary>
		/// <param name="node">Node under which to collapse fixtures</param>
		private void HideTestsUnderNode( TestSuiteTreeNode node )
		{
            if (node.Test.IsSuite)
            {
                if (node.Test.TestType == "TestFixture")
                    node.Collapse();
                else
                {
                    node.Expand();

                    foreach (TestSuiteTreeNode child in node.Nodes)
                        HideTestsUnderNode(child);
                }
            }
		}
开发者ID:Buildstarted,项目名称:ContinuousTests,代码行数:19,代码来源:TestSuiteTreeView.cs

示例3: UpdateNode

        /// <summary>
        /// A node has been matched with a test, so update it
        /// and then process child nodes and tests recursively.
        /// If a child was added or removed, then this node
        /// will expand itself.
        /// </summary>
        /// <param name="node">Node to be updated</param>
        /// <param name="test">Test to plug into node</param>
        /// <returns>True if a child node was added or deleted</returns>
        private bool UpdateNode( TestSuiteTreeNode node, TestNode test, IList deletedNodes )
        {
            if ( node.Test.TestName.FullName != test.TestName.FullName )
                throw( new TreeStructureChangedException(
                    string.Format( "Attempting to update {0} with {1}", node.Test.TestName.FullName, test.TestName.FullName ) ) );

            treeMap.Remove( node.Test.TestName.UniqueName );
            node.Test = test;
            treeMap.Add( test.TestName.UniqueName, node );

            if ( !test.IsSuite )
                return false;

            bool showChildren = UpdateNodes( node.Nodes, test.Tests, deletedNodes );

            if ( showChildren ) node.Expand();

            return showChildren;
        }
开发者ID:scottwis,项目名称:eddie,代码行数:28,代码来源:TestSuiteTreeView.cs

示例4: Visit

 public override void Visit(TestSuiteTreeNode node)
 {
     if ( node.WasExpanded && !node.IsExpanded )
         node.Expand();
     node.Checked = node.WasChecked;
 }
开发者ID:fotisp,项目名称:conqat,代码行数:6,代码来源:TestSuiteTreeView.cs


注:本文中的NUnit.UiKit.TestSuiteTreeNode.Expand方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。