C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

Create() публичный статический Метод

Initializes a new instance of the DataManager.
public static Create ( UnitTestHarness harness ) : DataManager
harness Microsoft.Silverlight.Testing.Harness.UnitTestHarness The unit test harness instance.
Результат DataManager

GetAssemblyModel() публичный Метод

Gets or creates the data model object for an assembly.
public GetAssemblyModel ( IAssembly assembly ) : TestAssemblyData
assembly IAssembly The test assembly.
Результат TestAssemblyData

GetClassModel() публичный Метод

Gets or creates the data model object for a test class.
public GetClassModel ( ITestClass testClass ) : TestClassData
testClass ITestClass The test class.
Результат TestClassData

GetMethodModel() публичный Метод

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.
Результат TestMethodData

Hook() публичный Метод

Connect to unit test harness events for processing and updating the underlying unit test run model.
public Hook ( ) : void
Результат void

Unhook() публичный Метод

Unhook from the unit test harness events.
public Unhook ( ) : void
Результат void