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

The extended writer for the unit testing harness and consumers.
Inheritance: LogMessageWriter
Mostra file Open project: garyjohnson/wpnest Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
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.

Method Details

Ignore() public method

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.
return void

LogException() public method

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.
return void

NoExceptionWhenExpected() public method

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.
return void

TestClassStage() public method

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.
return void

TestMethodStage() public method

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.
return void

TestResult() public method

Log the result of a unit test scenario.
public TestResult ( ScenarioResult result ) : void
result ScenarioResult The result of the test.
return void

TestRunFilterSelected() public method

Enqueues a message containing a test run filter.
public TestRunFilterSelected ( TestRunFilter filter ) : void
filter TestRunFilter The test run filter.
return void

UnitTestHarnessStage() public method

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.
return void

UnitTestLogMessageWriter() public method

Initializes the unit test log message writer helper.
public UnitTestLogMessageWriter ( UnitTestHarness harness ) : System
harness UnitTestHarness The test harness reference.
return System