Beispiel #1
0
        public void Factory_IncludeScope_ExpectIncludeLoggingScopeSettings()
        {
            var settings = LoggingScopeSettings.IncludeLoggingScope();

            Assert.True(settings.IncludeScope);
            Assert.Equal("Correlation", settings.CorrelationKey);
        }
Beispiel #2
0
 public void IncludeLoggingScope_WhenEmptyInput_Throws(string input)
 {
     Assert.Throws <ArgumentNullException>(() => LoggingScopeSettings.IncludeLoggingScope(input));
 }
Beispiel #3
0
 public void Ctor_InstantiatedUsingDefault_ExpectNoPropagation(LoggingScopeSettings loggingScope)
 {
     Assert.False(loggingScope.IncludeScope);
     Assert.Equal("Correlation", loggingScope.CorrelationKey);
 }