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

A log provider that outputs in a simple custom test format that Visual Studio recognizes.
Inheritance: Microsoft.Silverlight.Testing.Harness.LogProvider, ITestSettingsLogProvider
Exibir arquivo Open project: garyjohnson/wpnest Class Usage Examples

Public Methods

Method Description
Initialize ( UnitTestSettings settings ) : void

Initializes the test harness.

VisualStudioLogProvider ( ) : System

Initializes a new instance of the VisualStudioLogProvider class.

Protected Methods

Method Description
GenerateTestRunName ( IAssembly assembly ) : string

Generate a name for the test run that will be used when displaying the result in Visual Studio.

Private Methods

Method Description
NewGuid ( ) : string

Generates a new Guid string value.

ProcessBug ( Microsoft.Silverlight.Testing.Harness.LogMessage l ) : void

Process [Bug(...)].

ProcessException ( Microsoft.Silverlight.Testing.Harness.LogMessage l ) : void

Process an Exception that is logged or stored.

ProcessIncorrectException ( Microsoft.Silverlight.Testing.Harness.LogMessage l ) : void

Process an Exception that was not the expected Exception type.

ProcessResult ( Microsoft.Silverlight.Testing.Harness.LogMessage logMessage ) : void

Process a UTF result message.

RegisterLogHandlers ( ) : void

Register the handler conditions of interest to this log provider.

SetTestRunConfiguration ( IAssembly assembly ) : void

Sets the test run configuration information when the test assembly begins processing.

TestAssemblyStart ( Microsoft.Silverlight.Testing.Harness.LogMessage l ) : void

Assembly start code.

TestRunFilterSelected ( Microsoft.Silverlight.Testing.Harness.LogMessage logMessage ) : void

The run filter has been selected.

WriteLogFile ( UnitTestHarness harness ) : void

Method Details

GenerateTestRunName() protected method

Generate a name for the test run that will be used when displaying the result in Visual Studio.
protected GenerateTestRunName ( IAssembly assembly ) : string
assembly IAssembly The test assembly metadata object.
return string

Initialize() public method

Initializes the test harness.
public Initialize ( UnitTestSettings settings ) : void
settings UnitTestSettings The test harness settings.
return void

VisualStudioLogProvider() public method

Initializes a new instance of the VisualStudioLogProvider class.
public VisualStudioLogProvider ( ) : System
return System