Class UnityAchievementsViewTests
PlayMode tests for UnityAchievementsView against a real procedural panel: what the listing renders for locked, unlocked and concealed achievements, how it reacts to the achievement signals while shown, and the cancel-returns-to-the-opener path it shares with the leaderboard view. Inheriting UnityEngine.InputSystem.InputTestFixture isolates and resets the input system per test.
Namespace: Serenity.UnityAchievements.Tests.Infrastructure
Assembly: Tests.dll
Syntax
public class UnityAchievementsViewTests : InputTestFixture
Constructors
UnityAchievementsViewTests()
Declaration
public UnityAchievementsViewTests()
Methods
AchievementUnlockedSignal_AfterHide_DoesNotRefresh()
Declaration
public void AchievementUnlockedSignal_AfterHide_DoesNotRefresh()
AchievementUnlockedSignal_WhileShown_RefreshesTheListing()
Declaration
public void AchievementUnlockedSignal_WhileShown_RefreshesTheListing()
Cancel_ReturnsToTheOpenerAndPopsItsHistoryEntry()
Declaration
public IEnumerator Cancel_ReturnsToTheOpenerAndPopsItsHistoryEntry()
Returns
| Type | Description |
|---|---|
| IEnumerator |
Loaded_AfterHide_DoesNotRedraw()
Declaration
public void Loaded_AfterHide_DoesNotRedraw()
Loaded_WhileShown_ShowsWhatTheStoreTurnedOutToHold()
Declaration
public void Loaded_WhileShown_ShowsWhatTheStoreTurnedOutToHold()
ManySignalsInOneFrame_CostOneRebuild()
Declaration
public void ManySignalsInOneFrame_CostOneRebuild()
Refresh_WithFewerRowsThanBefore_LeavesNoGhostRows()
Declaration
public void Refresh_WithFewerRowsThanBefore_LeavesNoGhostRows()
RowIcon_IsGreyedWhileLockedAndFullColourOnceUnlocked()
Declaration
public void RowIcon_IsGreyedWhileLockedAndFullColourOnceUnlocked()
ShowAchievementsSignal_ShowsTheViewThroughTheRouter()
Declaration
public void ShowAchievementsSignal_ShowsTheViewThroughTheRouter()
Show_BeforeTheStoreAnswered_ShowsTheLoadingMessageRatherThanTheEmptyState()
Declaration
public void Show_BeforeTheStoreAnswered_ShowsTheLoadingMessageRatherThanTheEmptyState()
Show_HiddenAndLockedAchievement_RendersAsThePlaceholder()
Declaration
public void Show_HiddenAndLockedAchievement_RendersAsThePlaceholder()
Show_HiddenPlaceholdersSwitchedOff_LeavesConcealedAchievementsOutEntirely()
Declaration
public void Show_HiddenPlaceholdersSwitchedOff_LeavesConcealedAchievementsOutEntirely()
Show_NothingMatchesTheFilter_ShowsTheEmptyState()
Declaration
public void Show_NothingMatchesTheFilter_ShowsTheEmptyState()
Show_PointsSummarySwitchedOff_HidesTheSlot()
Declaration
public void Show_PointsSummarySwitchedOff_HidesTheSlot()
Show_PointsSummary_IsPrintedFromTheService()
Declaration
public void Show_PointsSummary_IsPrintedFromTheService()
Show_ProgressiveAchievement_RendersItsCounter()
Declaration
public void Show_ProgressiveAchievement_RendersItsCounter()
Show_RendersOneRowPerAchievement()
Declaration
public void Show_RendersOneRowPerAchievement()
Show_Rows_AreReusedAcrossRefreshesRatherThanRebuilt()
Declaration
public void Show_Rows_AreReusedAcrossRefreshesRatherThanRebuilt()
Show_UnlockedFilter_ListsOnlyEarnedAchievements()
Declaration
public void Show_UnlockedFilter_ListsOnlyEarnedAchievements()
StateReset_WhileShown_PutsEveryRowBackToLocked()
Declaration
public void StateReset_WhileShown_PutsEveryRowBackToLocked()
TearDown()
Declaration
public override void TearDown()