logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class SingletonSettingsSelectionTests

    Tests for Pick<T>(IReadOnlyList<T>, Func<T, bool>, Func<T, string>, out SingletonSelectionOutcome): the ownership rule a project-owned settings asset beats a shipped one, applied to plain string candidates 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.dll
    Syntax
    public class SingletonSettingsSelectionTests

    Constructors

    SingletonSettingsSelectionTests()

    Declaration
    public SingletonSettingsSelectionTests()

    Methods

    Pick_EmptyIdSortsBeforeNonEmpty()

    Declaration
    public void Pick_EmptyIdSortsBeforeNonEmpty()

    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_TwoProjectOwned_AmbiguousAndPicksLowestId()

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