logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityLeaderboardBestEntryCacheTests

    PlayMode tests for UnityLeaderboardBestEntryCache: the cached value stays "not found" until a query completes, a refresh fetches the local player's rank through ILeaderboardService, a LeaderboardEntrySubmittedSignal for the configured board re-triggers a refresh (a different board's does not), and disabling unsubscribes so a later signal no longer reacts.

    Inheritance
    object
    UnityLeaderboardBestEntryCacheTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.UnityLeaderboard.Tests.Infrastructure
    Assembly: Tests.dll
    Syntax
    public class UnityLeaderboardBestEntryCacheTests

    Constructors

    UnityLeaderboardBestEntryCacheTests()

    Declaration
    public UnityLeaderboardBestEntryCacheTests()

    Methods

    Disable_ThenTheQueryCompletesAnyway_DoesNotApplyTheLateResult()

    Declaration
    public IEnumerator Disable_ThenTheQueryCompletesAnyway_DoesNotApplyTheLateResult()
    Returns
    Type Description
    IEnumerator

    Disable_UnsubscribesAndCancelsSoSignalNoLongerReacts()

    Declaration
    public void Disable_UnsubscribesAndCancelsSoSignalNoLongerReacts()

    Disable_WhileQueryStillInFlight_CancelsItAndLeavesTheCacheUnchanged()

    Declaration
    public IEnumerator Disable_WhileQueryStillInFlight_CancelsItAndLeavesTheCacheUnchanged()
    Returns
    Type Description
    IEnumerator

    MatchingBoardSignal_TriggersRefresh_DifferentBoardSignal_DoesNot()

    Declaration
    public void MatchingBoardSignal_TriggersRefresh_DifferentBoardSignal_DoesNot()

    Refresh_CachesValueFromLeaderboardService()

    Declaration
    public void Refresh_CachesValueFromLeaderboardService()

    Refresh_WithNoEntryFromASuccessfulQuery_ClearsThePreviouslyCachedValue()

    Declaration
    public void Refresh_WithNoEntryFromASuccessfulQuery_ClearsThePreviouslyCachedValue()

    TearDown()

    Declaration
    public void TearDown()

    TryGetBestValue_BeforeAnyFetch_ReturnsFalse()

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