Class ComponentLoggerBehaviorTests
Behavioral tests for Serenity.Logging.Application.Services.ComponentLogger. NOTE: the Id/Guid property setters contain a known self-recursive bug and are intentionally NOT exercised here. Only the category binding, verbosity gating and write-delegation paths (which pass the bound category through to the root service) are tested.
Inherited Members
Namespace: Serenity.Logging.Tests.Application
Assembly: Tests.dll
Syntax
public class ComponentLoggerBehaviorTests
Constructors
ComponentLoggerBehaviorTests()
Declaration
public ComponentLoggerBehaviorTests()
Methods
Ctor_NullCategory_NormalizesToEmptyString()
Declaration
public void Ctor_NullCategory_NormalizesToEmptyString()
Ctor_StoresProvidedCategory()
Declaration
public void Ctor_StoresProvidedCategory()
EffectiveVerbosity_DelegatesToRootWithBoundCategory()
Declaration
public void EffectiveVerbosity_DelegatesToRootWithBoundCategory()
IsEnabledFor_DelegatesToRoot_AndReturnsTrue_WhenRootEnabled()
Declaration
public void IsEnabledFor_DelegatesToRoot_AndReturnsTrue_WhenRootEnabled()
IsEnabledFor_ReturnsFalse_WhenRootGatesOut()
Declaration
public void IsEnabledFor_ReturnsFalse_WhenRootGatesOut()
WriteErrorLog_ForwardsWithBoundCategory()
Declaration
public void WriteErrorLog_ForwardsWithBoundCategory()
WriteExceptionLog_ForwardsExceptionMessageAndCategory()
Declaration
public void WriteExceptionLog_ForwardsExceptionMessageAndCategory()
WriteExceptionLog_NullMessageDefault_ForwardsNullMessage()
Declaration
public void WriteExceptionLog_NullMessageDefault_ForwardsNullMessage()
WriteInfoLog_ForwardsToWriteInformationLogWithBoundCategory()
Declaration
public void WriteInfoLog_ForwardsToWriteInformationLogWithBoundCategory()
WriteLogMethods_NoTags_ForwardEmptyTagArray()
Declaration
public void WriteLogMethods_NoTags_ForwardEmptyTagArray()
WriteVerboseLog_ForwardsMessageCategoryAndTags()
Declaration
public void WriteVerboseLog_ForwardsMessageCategoryAndTags()
WriteWarningLog_ForwardsWithBoundCategory()
Declaration
public void WriteWarningLog_ForwardsWithBoundCategory()