C# Class Microsoft.Silverlight.Testing.Client.DataManager

Manages the unit test status and model by attaching to the unit test harness instance. Validates that all key logging can be done without special hooks inside of the unit test harness implementation.
显示文件 Open project: garyjohnson/wpnest Class Usage Examples

Public Methods

Method Description
Create ( UnitTestHarness harness ) : DataManager

Initializes a new instance of the DataManager.

GetAssemblyModel ( IAssembly assembly ) : TestAssemblyData

Gets or creates the data model object for an assembly.

GetClassModel ( ITestClass testClass ) : TestClassData

Gets or creates the data model object for a test class.

GetMethodModel ( ITestMethod testMethod, TestClassData parentTestClass ) : TestMethodData

Gets or creates the data model object for a test method.

Hook ( ) : void

Connect to unit test harness events for processing and updating the underlying unit test run model.

Unhook ( ) : void

Unhook from the unit test harness events.

Private Methods

Method Description
DataManager ( UnitTestHarness harness ) : System

Initializes a new instance of the DataManager type.

OnTestClassCompleted ( object sender, TestClassCompletedEventArgs e ) : void

Process the test class complete event.

OnTestClassStarting ( object sender, TestClassStartingEventArgs e ) : void

Process the test class starting event.

OnTestMethodCompleted ( object sender, TestMethodCompletedEventArgs e ) : void

Process the completion of test methods.

OnTestMethodStarting ( object sender, Microsoft.Silverlight.Testing.Harness.TestMethodStartingEventArgs e ) : void

Process the start of a test method.

OnTestRunStarting ( object sender, TestRunStartingEventArgs e ) : void

Process the starting of the test run.

ProcessResult ( ScenarioResult result ) : void

Process a result.

Method Details

Create() public static method

Initializes a new instance of the DataManager.
public static Create ( UnitTestHarness harness ) : DataManager
harness Microsoft.Silverlight.Testing.Harness.UnitTestHarness The unit test harness instance.
return DataManager

GetAssemblyModel() public method

Gets or creates the data model object for an assembly.
public GetAssemblyModel ( IAssembly assembly ) : TestAssemblyData
assembly IAssembly The test assembly.
return TestAssemblyData

GetClassModel() public method

Gets or creates the data model object for a test class.
public GetClassModel ( ITestClass testClass ) : TestClassData
testClass ITestClass The test class.
return TestClassData

GetMethodModel() public method

Gets or creates the data model object for a test method.
public GetMethodModel ( ITestMethod testMethod, TestClassData parentTestClass ) : TestMethodData
testMethod ITestMethod The test method.
parentTestClass TestClassData The parent test class data object.
return TestMethodData

Hook() public method

Connect to unit test harness events for processing and updating the underlying unit test run model.
public Hook ( ) : void
return void

Unhook() public method

Unhook from the unit test harness events.
public Unhook ( ) : void
return void