logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class SingletonSettingsSelectionTests

    Tests for SingletonSettingsSelection: the ownership rule a project-owned settings asset beats a shipped one, and the identity rule an asset carrying an Id beats one whose Id was never filled in. Applied to plain string candidates — "project:Score", "shipped:" — so the policy itself stays engine-agnostic.

    Inheritance
    object
    SingletonSettingsSelectionTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Shared.Tests.Utils
    Assembly: Tests.Editor.dll
    Syntax
    public class SingletonSettingsSelectionTests

    Constructors

    SingletonSettingsSelectionTests()

    Declaration
    public SingletonSettingsSelectionTests()

    Methods

    OrderByOwnership_AllShipped_OrdersBySortKeyAlone()

    Declaration
    public void OrderByOwnership_AllShipped_OrdersBySortKeyAlone()

    OrderByOwnership_MixOfProjectOwnedAndShipped_ProjectOwnedComesFirst()

    Declaration
    public void OrderByOwnership_MixOfProjectOwnedAndShipped_ProjectOwnedComesFirst()

    OrderByOwnership_WithinEachGroup_OrdersBySortKeyOrdinal()

    Declaration
    public void OrderByOwnership_WithinEachGroup_OrdersBySortKeyOrdinal()

    Pick_AdoptedTwinBesideItsShippedOrigin_TheAdoptedProjectCopyWins()

    Declaration
    public void Pick_AdoptedTwinBesideItsShippedOrigin_TheAdoptedProjectCopyWins()

    Pick_BlankIdBesideAnIdentifiedAsset_TheIdentifiedOneWins()

    Declaration
    public void Pick_BlankIdBesideAnIdentifiedAsset_TheIdentifiedOneWins()

    Pick_BlankIdProjectAssetBesideAnIdentifiedShippedOne_OwnershipStillDecides()

    Declaration
    public void Pick_BlankIdProjectAssetBesideAnIdentifiedShippedOne_OwnershipStillDecides()

    Pick_BlankIdProjectCloneBesideTheConfiguredProjectAsset_TheConfiguredOneWins()

    Declaration
    public void Pick_BlankIdProjectCloneBesideTheConfiguredProjectAsset_TheConfiguredOneWins()

    Pick_NoCandidates_ReturnsNone()

    Declaration
    public void Pick_NoCandidates_ReturnsNone()

    Pick_NoneProjectOwned_ReturnsLowestIdShippedFallback()

    Declaration
    public void Pick_NoneProjectOwned_ReturnsLowestIdShippedFallback()

    Pick_OneCandidate_ReturnsSingleRegardlessOfOwnership()

    Declaration
    public void Pick_OneCandidate_ReturnsSingleRegardlessOfOwnership()

    Pick_OneProjectOwnedAmongShipped_ProjectOwnedWins()

    Declaration
    public void Pick_OneProjectOwnedAmongShipped_ProjectOwnedWins()

    Pick_TwoBlankIdCandidates_IsDecidedByTheTieBreakKey()

    Declaration
    public void Pick_TwoBlankIdCandidates_IsDecidedByTheTieBreakKey()

    Pick_TwoProjectOwned_AmbiguousAndPicksLowestId()

    Declaration
    public void Pick_TwoProjectOwned_AmbiguousAndPicksLowestId()

    Resolve_NoCandidates_ShadowsNothing()

    Declaration
    public void Resolve_NoCandidates_ShadowsNothing()

    Resolve_OneCandidate_ShadowsNothing()

    Declaration
    public void Resolve_OneCandidate_ShadowsNothing()

    Resolve_SeveralCandidates_ReportsEveryShadowedOne()

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