logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class StructuredLogRoutingTests

    Tests for StructuredLogSinkResolver's multi-instance routing rules: bare-key resolution and ambiguity, structured:{Id} key extraction and lookup, first-wins Id registration, and the strict empty-Id skip rule.

    Inheritance
    object
    StructuredLogRoutingTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.UnityStructuredLogging.Tests.Installation
    Assembly: Tests.dll
    Syntax
    public class StructuredLogRoutingTests

    Constructors

    StructuredLogRoutingTests()

    Declaration
    public StructuredLogRoutingTests()

    Methods

    CountConfiguredInstances_IgnoresNullEntries()

    Declaration
    public void CountConfiguredInstances_IgnoresNullEntries()

    CountConfiguredInstances_NullOrEmptyList_CountsZero()

    Declaration
    public void CountConfiguredInstances_NullOrEmptyList_CountsZero()

    CountConfiguredInstances_NullSlotPlusBlankIdInstance_DoesNotTriggerTheEmptyIdSkip()

    Declaration
    public void CountConfiguredInstances_NullSlotPlusBlankIdInstance_DoesNotTriggerTheEmptyIdSkip()

    ResolveBareKey_MultipleInstalledInstances_IsAmbiguousAndResolvesNull()

    Declaration
    public void ResolveBareKey_MultipleInstalledInstances_IsAmbiguousAndResolvesNull()

    ResolveBareKey_NoInstalledInstances_ResolvesNullWithoutAmbiguity()

    Declaration
    public void ResolveBareKey_NoInstalledInstances_ResolvesNullWithoutAmbiguity()

    ResolveBareKey_SingleInstalledInstance_ResolvesIt()

    Declaration
    public void ResolveBareKey_SingleInstalledInstance_ResolvesIt()

    ResolveInstanceKey_KnownId_ResolvesTheRegisteredService()

    Declaration
    public void ResolveInstanceKey_KnownId_ResolvesTheRegisteredService()

    ResolveInstanceKey_UnknownOrMismatchedCaseId_ResolvesNull()

    Declaration
    public void ResolveInstanceKey_UnknownOrMismatchedCaseId_ResolvesNull()

    ShouldSkipForEmptyId_MultipleConfiguredInstances_SkipsBlankIds()

    Declaration
    public void ShouldSkipForEmptyId_MultipleConfiguredInstances_SkipsBlankIds()

    ShouldSkipForEmptyId_SingleConfiguredInstance_AllowsEmptyId()

    Declaration
    public void ShouldSkipForEmptyId_SingleConfiguredInstance_AllowsEmptyId()

    TryExtractInstanceId_IdMayContainFurtherColons()

    Declaration
    public void TryExtractInstanceId_IdMayContainFurtherColons()

    TryExtractInstanceId_InstanceKey_ExtractsIdPreservingCase()

    Declaration
    public void TryExtractInstanceId_InstanceKey_ExtractsIdPreservingCase()

    TryExtractInstanceId_NonInstanceKeys_DoNotMatch(string)

    Declaration
    public void TryExtractInstanceId_NonInstanceKeys_DoNotMatch(string key)
    Parameters
    Type Name Description
    string key

    TryExtractInstanceId_PrefixMatchesCaseInsensitively_IdKeepsOriginalCase()

    Declaration
    public void TryExtractInstanceId_PrefixMatchesCaseInsensitively_IdKeepsOriginalCase()

    TryRegisterInstance_BlankId_IsRejected(string)

    Declaration
    public void TryRegisterInstance_BlankId_IsRejected(string instanceId)
    Parameters
    Type Name Description
    string instanceId

    TryRegisterInstance_DuplicateId_FirstWins()

    Declaration
    public void TryRegisterInstance_DuplicateId_FirstWins()
    In this article
    © 2026 Serenity. All Rights Reserved