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

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

Méthodes publiques

Méthode Description
TestRunFilter ( UnitTestSettings settings, UnitTestHarness harness ) : System

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

Méthodes protégées

Méthode 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

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

Method Details

FilterCustomTestClasses() protected méthode

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.
Résultat void

FilterCustomTestMethods() protected méthode

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

FilterExclusiveTestClasses() protected méthode

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.
Résultat void

FilterExclusiveTestMethods() protected méthode

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

FilterLegacyTestClasses() protected méthode

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.
Résultat void

FilterTestClasses() protected méthode

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.
Résultat void

FilterTestMethods() protected méthode

Filter the test methods.
protected FilterTestMethods ( IList methods ) : void
methods IList List of test methods.
Résultat void

SortTestClasses() protected méthode

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

SortTestMethods() protected méthode

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

TestRunFilter() public méthode

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.
Résultat System