Пример #1
0
        public void All_LogEvents_Can_Be_Captured()
        {
            Guid contextGuid;

            Log.Information("1");

            using (var context = TestCorrelator.CreateContext())
            {
                contextGuid = context.Guid;
                Log.Information("2");
            }

            Log.Information("3");

            Assert.IsTrue(TestCorrelator.GetLogEventsFromAnyContext().Count() >= 3);
        }