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.
Afficher le fichier Open project: garyjohnson/wpnest Class Usage Examples

Méthodes publiques

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

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

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

GetAssemblyModel() public méthode

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

GetClassModel() public méthode

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

GetMethodModel() public méthode

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

Hook() public méthode

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

Unhook() public méthode

Unhook from the unit test harness events.
public Unhook ( ) : void
Résultat void