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
UnityLeaderboardViewCancelTests
Assembly: Tests.dll
Syntax
public class UnityLeaderboardViewCancelTests : InputTestFixture
Constructors
UnityLeaderboardViewCancelTests()
Declaration
public UnityLeaderboardViewCancelTests()
Methods
Cancel_EmptyHistory_StillReturnsAndDoesNotThrow()
Declaration
public IEnumerator Cancel_EmptyHistory_StillReturnsAndDoesNotThrow()
Returns
Cancel_PopsTheOpenerHistoryEntry_AndReturnsToIt()
Declaration
public IEnumerator Cancel_PopsTheOpenerHistoryEntry_AndReturnsToIt()
Returns
Cancel_TopHistoryEntryIsNotTheReturnTarget_LeavesHistoryAlone()
Declaration
public IEnumerator Cancel_TopHistoryEntryIsNotTheReturnTarget_LeavesHistoryAlone()
Returns
Cancel_UnresolvableReturnTarget_HidesItselfAndLeavesHistoryAlone()
Declaration
public IEnumerator Cancel_UnresolvableReturnTarget_HidesItselfAndLeavesHistoryAlone()
Returns
TearDown()
Declaration
public override void TearDown()