C# Класс Microsoft.Silverlight.Testing.Harness.VisualStudioLogProvider.Writer

A log provider that outputs in a simple custom test format that Visual Studio recognizes. This is a simple, subset writer.
Показать файл Открыть проект

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

Метод Описание
AddPendingErrorMessage ( string message ) : void

Adds an error message to the next result to be processed.

AddPendingException ( Exception e ) : void

Adds an Exception to the next result to be processed.

AddPendingWriteLine ( string line ) : void

Adds a WriteLine to the next result to be processed.

AddTestMethodResult ( ITestMethod test, string storage, string codeBase, string adapterTypeName, string className, string testListName, string computerName, System.DateTime startTime, System.DateTime endTime, TestOutcome outcome ) : void

Adds the result of a test method into the log.

GetXmlAsString ( ) : string

Returns the XML log file as a string.

IncrementResults ( TestOutcome outcome ) : void

Increment the number of passing results.

Writer ( ) : System

Initializes a new Writer object.

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

Метод Описание
AddPendingOutput ( SimpleXElement element ) : void

Adds pending output for the next result.

CreateElement ( string name ) : SimpleXElement

Creates a new XElement within the results XML namespace.

CreateInitialDocument ( ) : void

Creates the initial results document and its XElements.

FinalizeContent ( ) : void

Stores property values in the respective elements, clears any lookup dictionaries.

GetTestListGuid ( string testListName ) : string

Returns the GUID for a test list name. The result is stored in memory.

ToDateString ( System.DateTime dateTime ) : string

Returns a string value of the DateTime object.

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

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

Adds an error message to the next result to be processed.
public AddPendingErrorMessage ( string message ) : void
message string The message.
Результат void

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

Adds an Exception to the next result to be processed.
public AddPendingException ( Exception e ) : void
e System.Exception The Exception object.
Результат void

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

Adds a WriteLine to the next result to be processed.
public AddPendingWriteLine ( string line ) : void
line string The text to output.
Результат void

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

Adds the result of a test method into the log.
public AddTestMethodResult ( ITestMethod test, string storage, string codeBase, string adapterTypeName, string className, string testListName, string computerName, System.DateTime startTime, System.DateTime endTime, TestOutcome outcome ) : void
test ITestMethod The test metadata.
storage string The storage value.
codeBase string The code base value.
adapterTypeName string The adapter type name.
className string The class name.
testListName string The test list name.
computerName string The computer name.
startTime System.DateTime The start time.
endTime System.DateTime The end time.
outcome TestOutcome The outcome.
Результат void

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

Returns the XML log file as a string.
public GetXmlAsString ( ) : string
Результат string

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

Increment the number of passing results.
public IncrementResults ( TestOutcome outcome ) : void
outcome TestOutcome The test outcome.
Результат void

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

Initializes a new Writer object.
public Writer ( ) : System
Результат System