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

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