logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityLeaderboardViewCancelTests

    PlayMode tests for UnityLeaderboardView's cancel-return path: pressing Cancel while the view is shown must route back to ReturnViewId AND pop the navigation-history entry the opener menu pushed when it transitioned here — otherwise the opener's own next cancel pops that stale entry and "navigates" to the screen already on display (one dead cancel press). A top entry that does not name the return target (the view was opened by a signal, not a menu transition) must be left alone. Inheriting UnityEngine.InputSystem.InputTestFixture isolates and resets the input system per test.

    Inheritance
    object
    UnityLeaderboardViewCancelTests
    Namespace: Serenity.UnityLeaderboard.Tests.Infrastructure
    Assembly: Tests.dll
    Syntax
    public class UnityLeaderboardViewCancelTests : InputTestFixture

    Constructors

    UnityLeaderboardViewCancelTests()

    Declaration
    public UnityLeaderboardViewCancelTests()

    Methods

    Cancel_EmptyHistory_StillReturnsAndDoesNotThrow()

    Declaration
    public IEnumerator Cancel_EmptyHistory_StillReturnsAndDoesNotThrow()
    Returns
    Type Description
    IEnumerator

    Cancel_PopsTheOpenerHistoryEntry_AndReturnsToIt()

    Declaration
    public IEnumerator Cancel_PopsTheOpenerHistoryEntry_AndReturnsToIt()
    Returns
    Type Description
    IEnumerator

    Cancel_TopHistoryEntryIsNotTheReturnTarget_LeavesHistoryAlone()

    Declaration
    public IEnumerator Cancel_TopHistoryEntryIsNotTheReturnTarget_LeavesHistoryAlone()
    Returns
    Type Description
    IEnumerator

    Cancel_UnresolvableReturnTarget_HidesItselfAndLeavesHistoryAlone()

    Declaration
    public IEnumerator Cancel_UnresolvableReturnTarget_HidesItselfAndLeavesHistoryAlone()
    Returns
    Type Description
    IEnumerator

    TearDown()

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