Exemplo n.º 1
0
        public void StackTraceLogEventContextProvider_AddProperties_AddsProperty()
        {
            var provider = new StackTraceLogEventContextProvider();
            var logEvent = new LogEvent()
            {
                EventName  = "Test event",
                Properties = new Dictionary <string, object>()
            };

            provider.AddProperties(logEvent, null);
            Assert.IsFalse(String.IsNullOrWhiteSpace((string)logEvent.Properties["Stacktrace"]));
        }
Exemplo n.º 2
0
 public void StackTraceLogEventContextProvider_Constructor_ConstructsOkWithNullFilter()
 {
     var provider = new StackTraceLogEventContextProvider(null);
 }
Exemplo n.º 3
0
 public void StackTraceLogEventContextProvider_Constructor_ConstructsOk()
 {
     var provider = new StackTraceLogEventContextProvider();
 }