Ejemplo n.º 1
0
 public void Nothing_should_be_enabled_when_level_is_off()
 {
     var log = new TraceLogger(LogLevel.Off, "TraceLoggerTest");
     Assert.That(log.IsDebugEnabled, Is.False);
     Assert.That(log.IsInfoEnabled, Is.False);
     Assert.That(log.IsWarnEnabled, Is.False);
     Assert.That(log.IsFatalEnabled, Is.False);
     Assert.That(log.IsErrorEnabled, Is.False);
 }
Ejemplo n.º 2
0
 public void Error_should_be_enabled_when_level_is_info()
 {
     var log = new TraceLogger(LogLevel.Info, "TraceLoggerTest");
     Assert.That(log.IsErrorEnabled, Is.True);
 }
Ejemplo n.º 3
0
 public void Debug_should_not_be_enabled_when_level_is_info()
 {
     var log = new TraceLogger(LogLevel.Info, "TraceLoggerTest");
     Assert.That(log.IsDebugEnabled, Is.False);
 }