C# Class RevitLookup.Test.TestForm

This is a generic Test "Shell" that allows you to easily add new test functions and organize them without much effort. The Tests are divided into two basic categories, those that are organized by class hierarchy (e.g., this test applies to all objects at this level of the class hierarchy), and Categorized tests (e.g., this test falls into the Category of "Data Extraction"). The test funcs are collected and sorted into buckets that are then displayed in the correct location in the tree.
Inheritance: System.Windows.Forms.Form
Mostrar archivo Open project: jeremytammik/RevitLookup Class Usage Examples

Public Methods

Method Description
DoTest ( ) : void

Run the Test function

TestForm ( ArrayList testFuncs ) : System

Generic dialog that will display and organize a set of test functions

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
AddFuncToBucket ( RevitLookupTestFuncInfo newTestFuncInfo ) : void

Sort the in-coming collection of tests in to like-buckets.

AddNodeForClassType ( System classType ) : TreeNode

Given a classType, add a node to the tree in the correct spot to house the tests from this level of the hierarchy.

AddTreeItem ( string nodeName, string category, TreeNode parentNode, ImageIconList imageIndex ) : TreeNode

This is the simple case of adding a root node to the tree or a simple Category-based node. Category and ParentNode can be null.

BuildTree ( ) : void

The functions have been sorted. Walk the list of buckets and add them to the appropriate location in the TreeControl

DisplayCurrent ( ) : void

User has selected a node in the tree, update the ListCtrl with the appropriate tests

GetTests ( Type type, bool includeBaseType ) : void

Recursive function to get tests from a type and its base types

GetTests ( string categoryStr ) : void

Walk the list of Function Buckets and collect all the functions in this bucket

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

ItemSelected ( object sender, System e ) : void

OnCheckChanged_IncludeBaseClass ( object sender, EventArgs e ) : void
OnColumnClick ( object sender, System.Windows.Forms.ColumnClickEventArgs e ) : void

Sort the columns according to the column sorter object mandate

ProcessAfterSelect ( TreeNode treeNode ) : void

RestoreDialogState ( ) : void

Remember the last position selected in the tree

TreeView_AfterSelect ( object sender, TreeViewEventArgs e ) : void

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
return void

DoTest() public method

Run the Test function
public DoTest ( ) : void
return void

TestForm() public method

Generic dialog that will display and organize a set of test functions
public TestForm ( ArrayList testFuncs ) : System
testFuncs System.Collections.ArrayList Array of TestFuncInfo objects
return System