C# Class Microsoft.Silverlight.Testing.Harness.TestRunFilter

A type to filter down complete sets of classes, tests and methods.
Show file Open project: garyjohnson/wpnest Class Usage Examples

Public Methods

Method Description
TestRunFilter ( UnitTestSettings settings, UnitTestHarness harness ) : System

Initializes a new test run filter using an existing settings file.

Protected Methods

Method Description
FilterCustomTestClasses ( IList classes, TestClassInstanceDictionary instances ) : void

Perform any custom filtering that the TestRunFilter needs.

FilterCustomTestMethods ( IList methods ) : void

Perform any custom filtering that the TestRunFilter needs.

FilterExclusiveTestClasses ( IList classes, TestClassInstanceDictionary instances ) : void

If any exclusive classes are found, filter them.

FilterExclusiveTestMethods ( IList methods ) : void

If any exclusive classes are found, filter them.

FilterLegacyTestClasses ( IList classes, TestClassInstanceDictionary instances ) : void

If specific string-contains filters are present.

FilterTestClasses ( IList classes, TestClassInstanceDictionary instances ) : void

Filter out tests based on the standard-supported methods.

FilterTestMethods ( IList methods ) : void

Filter the test methods.

SortTestClasses ( IList tests ) : void

Sort the test classes if the settings for alphabetical sorting are present.

SortTestMethods ( IList methods ) : void

Sorts the test methods, if requested.

Private Methods

Method Description
GetTestClasses ( IAssembly assembly, TestClassInstanceDictionary instances ) : List
GetTestMethods ( ITestClass test, object instance ) : List

Method Details

FilterCustomTestClasses() protected method

Perform any custom filtering that the TestRunFilter needs.
protected FilterCustomTestClasses ( IList classes, TestClassInstanceDictionary instances ) : void
classes IList List of test classes.
instances TestClassInstanceDictionary Test class instance dictionary.
return void

FilterCustomTestMethods() protected method

Perform any custom filtering that the TestRunFilter needs.
protected FilterCustomTestMethods ( IList methods ) : void
methods IList List of test methods.
return void

FilterExclusiveTestClasses() protected method

If any exclusive classes are found, filter them.
protected FilterExclusiveTestClasses ( IList classes, TestClassInstanceDictionary instances ) : void
classes IList List of test classes.
instances TestClassInstanceDictionary Test class instance dictionary.
return void

FilterExclusiveTestMethods() protected method

If any exclusive classes are found, filter them.
protected FilterExclusiveTestMethods ( IList methods ) : void
methods IList List of test methods.
return void

FilterLegacyTestClasses() protected method

If specific string-contains filters are present.
protected FilterLegacyTestClasses ( IList classes, TestClassInstanceDictionary instances ) : void
classes IList List of test classes.
instances TestClassInstanceDictionary Test class instance dictionary.
return void

FilterTestClasses() protected method

Filter out tests based on the standard-supported methods.
protected FilterTestClasses ( IList classes, TestClassInstanceDictionary instances ) : void
classes IList List of test classes.
instances TestClassInstanceDictionary Test class instance dictionary.
return void

FilterTestMethods() protected method

Filter the test methods.
protected FilterTestMethods ( IList methods ) : void
methods IList List of test methods.
return void

SortTestClasses() protected method

Sort the test classes if the settings for alphabetical sorting are present.
protected SortTestClasses ( IList tests ) : void
tests IList List of test classes.
return void

SortTestMethods() protected method

Sorts the test methods, if requested.
protected SortTestMethods ( IList methods ) : void
methods IList List of test methods.
return void

TestRunFilter() public method

Initializes a new test run filter using an existing settings file.
public TestRunFilter ( UnitTestSettings settings, UnitTestHarness harness ) : System
settings UnitTestSettings A unit test settings instance.
harness UnitTestHarness The unit test harness.
return System