logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    ComponentLoggerBehaviorTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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()
    In this article
    © 2026 Serenity. All Rights Reserved