NetworkLoggerTests NotLoggingIfSettingFalse Method Delta Engine Documentation

Namespace: DeltaEngine.Logging.Tests
Assembly: DeltaEngine.Logging.Tests (in DeltaEngine.Logging.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void NotLoggingIfSettingFalse()
Examples

[Test]
public void NotLoggingIfSettingFalse()
{
    var logRecieved = false;
    Settings.Current.UseOnlineLogging = false;
    server.Server.ClientDataReceived += (client, o) => logRecieved = true;
    logger.Write(Logger.MessageType.Error, new ArgumentException().ToString());
    Assert.IsFalse(logRecieved);
    Settings.Current.UseOnlineLogging = true;
}
See Also