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
Afficher le fichier Open project: nunit/nunit-vs-adapter Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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 méthode

public AssemblyNotSupportedWarning ( string sourceAssembly ) : void
sourceAssembly string
Résultat void

DependentAssemblyNotFoundWarning() public méthode

public DependentAssemblyNotFoundWarning ( string dependentAssembly, string sourceAssembly ) : void
dependentAssembly string
sourceAssembly string
Résultat void

Initialize() public méthode

public Initialize ( IMessageLogger messageLoggerParam ) : void
messageLoggerParam IMessageLogger
Résultat void

LoadingAssemblyFailedWarning() public méthode

public LoadingAssemblyFailedWarning ( string dependentAssembly, string sourceAssembly ) : void
dependentAssembly string
sourceAssembly string
Résultat void

NoNUnit2TestsFoundIn() public méthode

public NoNUnit2TestsFoundIn ( string sourceAssembly ) : void
sourceAssembly string
Résultat void

SendDebugMessage() public méthode

public SendDebugMessage ( string message ) : void
message string
Résultat void

SendErrorMessage() public méthode

public SendErrorMessage ( string message ) : void
message string
Résultat void

SendErrorMessage() public méthode

public SendErrorMessage ( string message, Exception ex ) : void
message string
ex System.Exception
Résultat void

SendInformationalMessage() public méthode

public SendInformationalMessage ( string message ) : void
message string
Résultat void

SendMessage() public méthode

public SendMessage ( TestMessageLevel testMessageLevel, string message ) : void
testMessageLevel TestMessageLevel
message string
Résultat void

SendWarningMessage() public méthode

public SendWarningMessage ( string message ) : void
message string
Résultat void

SendWarningMessage() public méthode

public SendWarningMessage ( string message, Exception ex ) : void
message string
ex System.Exception
Résultat void

TestLogger() public méthode

public TestLogger ( ) : System
Résultat System

TestLogger() public méthode

public TestLogger ( int verbosity ) : System
verbosity int
Résultat System

UnsupportedFrameworkWarning() public méthode

public UnsupportedFrameworkWarning ( string assembly ) : void
assembly string
Résultat void