Ejemplo n.º 1
0
 public Log4NetLogManagerLoggingEnabledTests()
 {
     Log4NetLogManager.ProviderIsAvailableOverride = true;
     memoryAppender = new MemoryAppender();
     BasicConfigurator.Configure(memoryAppender);
     log4NetLogManager = new Log4NetLogManager();
     sut = log4NetLogManager.GetLogger("Test");
 }
		public Log4NetLogManagerLoggingEnabledTests()
		{
			Log4NetLogManager.ProviderIsAvailabileOverride = true;
			memoryAppender = new MemoryAppender();
			BasicConfigurator.Configure(memoryAppender);
			log4NetLogManager = new Log4NetLogManager();
			sut = log4NetLogManager.GetLogger("Test");
		}
        public void GetLogger_WithNameAsString()
        {
            var log = _logManager.GetLogger("The Name");

            Assert.IsInstanceOf(typeof(Log4NetLog), log);
            var log4NetLog = (Log4NetLog)log;

            Assert.That(log4NetLog.Logger.Name, Is.EqualTo("The Name"));
        }