Method | Description | |
---|---|---|
CreateConfigurationFromString ( string configXml ) : XmlLoggingConfiguration | ||
GetDebugTarget ( string targetName ) : NLog.Targets.DebugTarget |
Method | Description | |
---|---|---|
AssertDebugCounter ( string targetName, int val ) : void | ||
AssertDebugLastMessage ( string targetName, string msg ) : void | ||
AssertDebugLastMessageContains ( string targetName, string msg ) : void | ||
AssertFileContains ( string fileName, string contentToCheck, |
||
AssertFileContents ( string fileName, string contents, |
||
AssertFileContents ( string fileName, string contents, |
||
AssertFileContentsEndsWith ( string fileName, string contents, |
||
AssertFileContentsStartsWith ( string fileName, string contents, |
||
AssertLayoutRendererOutput ( Layout layout, LogEventInfo logEventInfo, string expected ) : void |
Render layout layout with logEventInfo and compare result with expected.
|
|
AssertLayoutRendererOutput ( Layout layout, string expected ) : void |
Render layout layout with dummy LogEventInfoand compare result with expected.
|
|
AssertZipFileContents ( string fileName, string contents, |
||
GetCultureInfo ( string cultureName ) : CultureInfo |
Creates CultureInfo instance for test purposes Creates CultureInfo instance with non-userOverride flag to provide expected results when running tests in different system cultures(with overriden culture options) |
|
GetDebugLastMessage ( string targetName ) : string | ||
GetDebugLastMessage ( string targetName, LoggingConfiguration configuration ) : string | ||
GetDebugTarget ( string targetName, LoggingConfiguration configuration ) : NLog.Targets.DebugTarget | ||
GetPrevLineNumber ( ) : int |
Get line number of previous line.
|
|
GetPrevLineNumber ( [ callingFileLineNumber ) : int |
Get line number of previous line.
|
|
NLogTestBase ( ) : System.Linq | ||
RunAndCaptureInternalLog ( SyncAction action, LogLevel internalLogLevel ) : string | ||
StringRepeat ( int times, string s ) : string |
protected AssertDebugCounter ( string targetName, int val ) : void | ||
targetName | string | |
val | int | |
return | void |
protected AssertDebugLastMessage ( string targetName, string msg ) : void | ||
targetName | string | |
msg | string | |
return | void |
protected AssertDebugLastMessageContains ( string targetName, string msg ) : void | ||
targetName | string | |
msg | string | |
return | void |
protected AssertFileContains ( string fileName, string contentToCheck, |
||
fileName | string | |
contentToCheck | string | |
encoding | ||
return | void |
protected AssertFileContents ( string fileName, string contents, |
||
fileName | string | |
contents | string | |
encoding | ||
return | void |
protected AssertFileContents ( string fileName, string contents, |
||
fileName | string | |
contents | string | |
encoding | ||
addBom | bool | |
return | void |
protected AssertFileContentsEndsWith ( string fileName, string contents, |
||
fileName | string | |
contents | string | |
encoding | ||
return | void |
protected AssertFileContentsStartsWith ( string fileName, string contents, |
||
fileName | string | |
contents | string | |
encoding | ||
return | void |
protected static AssertLayoutRendererOutput ( Layout layout, LogEventInfo logEventInfo, string expected ) : void | ||
layout | Layout | |
logEventInfo | LogEventInfo | |
expected | string | |
return | void |
protected static AssertLayoutRendererOutput ( Layout layout, string expected ) : void | ||
layout | Layout | |
expected | string | |
return | void |
protected AssertZipFileContents ( string fileName, string contents, |
||
fileName | string | |
contents | string | |
encoding | ||
return | void |
public static CreateConfigurationFromString ( string configXml ) : XmlLoggingConfiguration | ||
configXml | string | |
return | XmlLoggingConfiguration |
protected static GetCultureInfo ( string cultureName ) : CultureInfo | ||
cultureName | string | Culture name to create |
return | CultureInfo |
protected GetDebugLastMessage ( string targetName ) : string | ||
targetName | string | |
return | string |
protected GetDebugLastMessage ( string targetName, LoggingConfiguration configuration ) : string | ||
targetName | string | |
configuration | LoggingConfiguration | |
return | string |
public GetDebugTarget ( string targetName ) : NLog.Targets.DebugTarget | ||
targetName | string | |
return | NLog.Targets.DebugTarget |
protected GetDebugTarget ( string targetName, LoggingConfiguration configuration ) : NLog.Targets.DebugTarget | ||
targetName | string | |
configuration | LoggingConfiguration | |
return | NLog.Targets.DebugTarget |
protected GetPrevLineNumber ( [ callingFileLineNumber ) : int | ||
callingFileLineNumber | [ | |
return | int |
protected RunAndCaptureInternalLog ( SyncAction action, LogLevel internalLogLevel ) : string | ||
action | SyncAction | |
internalLogLevel | LogLevel | |
return | string |
protected StringRepeat ( int times, string s ) : string | ||
times | int | |
s | string | |
return | string |