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

Container and manager type which handles an entire test assembly; contains sub work items that represent all actions needed to execute its tests.
ファイルを表示 Open project: garyjohnson/wpnest Class Usage Examples

Private Properties

Property Type Description
EnqueueAssemblyCleanup void
EnqueueAssemblyInitialize void
EnqueueMethodDispatcher void
EnqueueTestClasses void

Public Methods

Method Description
AssemblyManager ( TestRunFilter runFilter, UnitTestHarness testHarness, IUnitTestProvider provider, IAssembly testAssembly ) : System

Create a new assembly manager, takes in the harness, provider reference and actual IAssembly object.

Protected Methods

Method Description
FirstInvoke ( ) : void

When the test run is ready to test the underlying test assembly that this class manages, perform reflection and enqueue work items to run the tests.

Private Methods

Method Description
EnqueueAssemblyCleanup ( ) : void

The assembly cleanup method.

EnqueueAssemblyInitialize ( ) : void

The assembly initialize method.

EnqueueMethodDispatcher ( MethodInfo method ) : void

Helper to enqueue a new method dispatcher.

EnqueueTestClasses ( ) : void

Reflect over all test classes in the assembly and add any which are not filtered out into the test work item queue.

Method Details

AssemblyManager() public method

Create a new assembly manager, takes in the harness, provider reference and actual IAssembly object.
public AssemblyManager ( TestRunFilter runFilter, UnitTestHarness testHarness, IUnitTestProvider provider, IAssembly testAssembly ) : System
runFilter TestRunFilter The test run filter object.
testHarness UnitTestHarness Harness object.
provider IUnitTestProvider The unit test metadata provider.
testAssembly IAssembly The test assembly metadata object.
return System

FirstInvoke() protected method

When the test run is ready to test the underlying test assembly that this class manages, perform reflection and enqueue work items to run the tests.
protected FirstInvoke ( ) : void
return void