C# Класс Microsoft.Silverlight.Testing.Harness.UnitTestLogMessageWriter

The extended writer for the unit testing harness and consumers.
Наследование: LogMessageWriter
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Ignore ( TestGranularity granularity, string name ) : void

Enqueues a Ignore message.

LogException ( Exception exception, ITestClass test, ITestMethod method ) : void

Logs and Exception that was intercepted or observed.

NoExceptionWhenExpected ( Type expectedExceptionType, ITestClass test, ITestMethod method ) : void

No Exception was intercepted, yet one was expected.

TestClassStage ( ITestClass test, TestStage stage ) : void

Log a test class's stage.

TestMethodStage ( ITestMethod method, TestStage stage ) : void

Log a test method's stage.

TestResult ( ScenarioResult result ) : void

Log the result of a unit test scenario.

TestRunFilterSelected ( TestRunFilter filter ) : void

Enqueues a message containing a test run filter.

UnitTestHarnessStage ( UnitTestHarness harness, string name, TestStage stage ) : void

Records a harness state for the unit test harness.

UnitTestLogMessageWriter ( UnitTestHarness harness ) : System

Initializes the unit test log message writer helper.

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

Метод Описание
GranularAssemblyTestStage ( IAssembly assembly, TestGranularity granularity, TestStage stage ) : void
IncorrectException ( Type expectedExceptionType, Type actualExceptionType, ITestClass test, ITestMethod method ) : void
MarkUnitTestMessage ( Microsoft.Silverlight.Testing.Harness.LogMessage message ) : void

Marks a message as a unit test system-specific message.

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

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

Enqueues a Ignore message.
public Ignore ( TestGranularity granularity, string name ) : void
granularity TestGranularity The granularity of the ignore operation.
name string The name of the test skipped.
Результат void

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

Logs and Exception that was intercepted or observed.
public LogException ( Exception exception, ITestClass test, ITestMethod method ) : void
exception System.Exception The actual Exception instance.
test ITestClass The test class metadata.
method ITestMethod The test method metadata.
Результат void

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

No Exception was intercepted, yet one was expected.
public NoExceptionWhenExpected ( Type expectedExceptionType, ITestClass test, ITestMethod method ) : void
expectedExceptionType System.Type The expected exception type.
test ITestClass The test class metadata.
method ITestMethod The test method metadata.
Результат void

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

Log a test class's stage.
public TestClassStage ( ITestClass test, TestStage stage ) : void
test ITestClass The test class metadata object.
stage TestStage The test stage.
Результат void

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

Log a test method's stage.
public TestMethodStage ( ITestMethod method, TestStage stage ) : void
method ITestMethod The test method metadata object.
stage TestStage The test stage.
Результат void

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

Log the result of a unit test scenario.
public TestResult ( ScenarioResult result ) : void
result ScenarioResult The result of the test.
Результат void

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

Enqueues a message containing a test run filter.
public TestRunFilterSelected ( TestRunFilter filter ) : void
filter TestRunFilter The test run filter.
Результат void

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

Records a harness state for the unit test harness.
public UnitTestHarnessStage ( UnitTestHarness harness, string name, TestStage stage ) : void
harness UnitTestHarness The unit test harness.
name string The harness name.
stage TestStage The test stage.
Результат void

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

Initializes the unit test log message writer helper.
public UnitTestLogMessageWriter ( UnitTestHarness harness ) : System
harness UnitTestHarness The test harness reference.
Результат System