C# Class NUnit.VisualStudio.TestAdapter.TestLogger

TestLogger wraps an IMessageLogger and adds various utility methods for sending messages. Since the IMessageLogger is only provided when the discovery and execution objects are called, we use two-phase construction. Until Initialize is called, the logger simply swallows all messages without sending them anywhere.
Inheritance: IMessageLogger
Mostrar archivo Open project: nunit/nunit-vs-adapter Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
AssemblyNotSupportedWarning ( string sourceAssembly ) : void
DependentAssemblyNotFoundWarning ( string dependentAssembly, string sourceAssembly ) : void
Initialize ( IMessageLogger messageLoggerParam ) : void
LoadingAssemblyFailedWarning ( string dependentAssembly, string sourceAssembly ) : void
NoNUnit2TestsFoundIn ( string sourceAssembly ) : void
SendDebugMessage ( string message ) : void
SendErrorMessage ( string message ) : void
SendErrorMessage ( string message, Exception ex ) : void
SendInformationalMessage ( string message ) : void
SendMessage ( TestMessageLevel testMessageLevel, string message ) : void
SendWarningMessage ( string message ) : void
SendWarningMessage ( string message, Exception ex ) : void
TestLogger ( ) : System
TestLogger ( int verbosity ) : System
UnsupportedFrameworkWarning ( string assembly ) : void

Method Details

AssemblyNotSupportedWarning() public method

public AssemblyNotSupportedWarning ( string sourceAssembly ) : void
sourceAssembly string
return void

DependentAssemblyNotFoundWarning() public method

public DependentAssemblyNotFoundWarning ( string dependentAssembly, string sourceAssembly ) : void
dependentAssembly string
sourceAssembly string
return void

Initialize() public method

public Initialize ( IMessageLogger messageLoggerParam ) : void
messageLoggerParam IMessageLogger
return void

LoadingAssemblyFailedWarning() public method

public LoadingAssemblyFailedWarning ( string dependentAssembly, string sourceAssembly ) : void
dependentAssembly string
sourceAssembly string
return void

NoNUnit2TestsFoundIn() public method

public NoNUnit2TestsFoundIn ( string sourceAssembly ) : void
sourceAssembly string
return void

SendDebugMessage() public method

public SendDebugMessage ( string message ) : void
message string
return void

SendErrorMessage() public method

public SendErrorMessage ( string message ) : void
message string
return void

SendErrorMessage() public method

public SendErrorMessage ( string message, Exception ex ) : void
message string
ex System.Exception
return void

SendInformationalMessage() public method

public SendInformationalMessage ( string message ) : void
message string
return void

SendMessage() public method

public SendMessage ( TestMessageLevel testMessageLevel, string message ) : void
testMessageLevel TestMessageLevel
message string
return void

SendWarningMessage() public method

public SendWarningMessage ( string message ) : void
message string
return void

SendWarningMessage() public method

public SendWarningMessage ( string message, Exception ex ) : void
message string
ex System.Exception
return void

TestLogger() public method

public TestLogger ( ) : System
return System

TestLogger() public method

public TestLogger ( int verbosity ) : System
verbosity int
return System

UnsupportedFrameworkWarning() public method

public UnsupportedFrameworkWarning ( string assembly ) : void
assembly string
return void