Example #1
0
        public void TearDown()
        {
            _listener.Dispose();
            _filterListener.Dispose();

            LogManager.ResetConfiguration();
        }
        public void TearDown()
        {
            if (ShowLogOutput)
            {
                var logEvents = MemoryAppender.GetEvents().Reverse().ToArray();
                Console.WriteLine(logEvents.Skip(1).First().RenderedMessage);
                Console.WriteLine(logEvents.First().RenderedMessage);
            }

            MemoryAppender.Clear();
            LogManager.ResetConfiguration();

            Assert.That(LogManager.GetLogger(typeof(DiagnosticOutputRuleMergeDecorator)).IsDebugEnabled, Is.False);
            _serviceLocatorScope.Dispose();
        }
 public void TearDown()
 {
     LogManager.ResetConfiguration();
     _testEventLog.Clear();
 }