Class AchievementServiceDegradationTests
Tests for what the service does when its collaborators misbehave: a store that throws, a
platform that cannot answer, a storefront SDK that never returns, and a reset that lands
while a screenshot capture is still in flight. Nothing here may surface as an exception to
the gameplay code that triggered the unlock.
Inheritance
AchievementServiceDegradationTests
Assembly: Tests.dll
Syntax
public class AchievementServiceDegradationTests
Constructors
AchievementServiceDegradationTests()
Declaration
public AchievementServiceDegradationTests()
Methods
CaptureCompletingNormally_StillWritesWhenNoResetHappened()
Declaration
public Task CaptureCompletingNormally_StillWritesWhenNoResetHappened()
Returns
Declaration
public Task LoadAsync_PlatformQueryThrows_SkipsBothHalvesOfReconciliation()
Returns
Declaration
public Task LoadAsync_PlatformQueryThrows_StillDrainsTheOfflineQueue()
Returns
Declaration
public Task LoadAsync_PlatformThatNeverAnswers_GivesUpAfterTheTimeout()
Returns
LoadAsync_ReadThrowsAfterSchema_DoesNotKeepStalePartialState()
Declaration
public Task LoadAsync_ReadThrowsAfterSchema_DoesNotKeepStalePartialState()
Returns
LoadAsync_StoreThrows_LeavesTheServiceEmptyAndNotLoaded()
Declaration
public void LoadAsync_StoreThrows_LeavesTheServiceEmptyAndNotLoaded()
QueryUnlockedAsync_Answering_ReportsSuccess()
Declaration
public Task QueryUnlockedAsync_Answering_ReportsSuccess()
Returns
QueryUnlockedAsync_Throwing_ReportsUnreachableRatherThanEmpty()
Declaration
public Task QueryUnlockedAsync_Throwing_ReportsUnreachableRatherThanEmpty()
Returns
ResetAllAsync_StoreThrows_StillClearsTheCache()
Declaration
public Task ResetAllAsync_StoreThrows_StillClearsTheCache()
Returns
ResetWhileACaptureIsPending_DiscardsTheCaptureInsteadOfResurrectingTheRecord()
Declaration
public Task ResetWhileACaptureIsPending_DiscardsTheCaptureInsteadOfResurrectingTheRecord()
Returns
ScreenshotWriteThrows_LeavesTheUnlockWithoutAKey()
Declaration
public Task ScreenshotWriteThrows_LeavesTheUnlockWithoutAKey()
Returns
SetProgressAsync_StoreWriteThrows_StillAdvancesInMemory()
Declaration
public Task SetProgressAsync_StoreWriteThrows_StillAdvancesInMemory()
Returns
Declaration
public Task UnlockAsync_PlatformThatNeverAnswers_StillUnlocksLocally()
Returns
UnlockAsync_StoreWriteThrows_StillUnlocksInMemoryAndSignals()
Declaration
public Task UnlockAsync_StoreWriteThrows_StillUnlocksInMemoryAndSignals()
Returns