Ejemplo n.º 1
0
        public void RaiseLogEvent_WithEvent_Logs()
        {
            LogEventArgs eventArgs = new LogEventArgs(null, false, 0, Categories.ArgumentValidation, Levels.Warning, "Message", string.Empty);

            UntaggedLogging.RaiseLogEvent(null, eventArgs);
            Assert.Equal(1, LoggedEvents.Count);
            Assert.Same(eventArgs, LoggedEvents[0]);
        }
Ejemplo n.º 2
0
 public void RaiseLogEvent_WithoutEvent_DoesNotLog()
 {
     UntaggedLogging.RaiseLogEvent(null, null);
     Assert.Empty(LoggedEvents);
 }