Class GameProgressServiceTests
GameProgressService-specific tests: completion increment, unlock idempotence,
signal dispatch, custom-payload round-trip, the monotonically-increasing tick guarantee, and
the one-time not-loaded warning.
Inheritance
GameProgressServiceTests
Assembly: Tests.dll
Syntax
public class GameProgressServiceTests
Constructors
GameProgressServiceTests()
Declaration
public GameProgressServiceTests()
Methods
GetProgress_AfterLoadAsync_DoesNotWarn()
Declaration
public Task GetProgress_AfterLoadAsync_DoesNotWarn()
Returns
GetProgress_BeforeLoadAsync_WarnsExactlyOnce()
Declaration
public void GetProgress_BeforeLoadAsync_WarnsExactlyOnce()
IncrementCompletionCount_MultipleTimes_AccumulatesCount()
Declaration
public void IncrementCompletionCount_MultipleTimes_AccumulatesCount()
IncrementCompletionCount_Once_IncrementsAndDispatchesSignals()
Declaration
public void IncrementCompletionCount_Once_IncrementsAndDispatchesSignals()
Declaration
public void IsExtraUnlocked_UnknownExtra_ReturnsFalse()
LoadAsync_NothingPersistedYet_YieldsEmptyProgress()
Declaration
public Task LoadAsync_NothingPersistedYet_YieldsEmptyProgress()
Returns
MultipleMutations_EachProduceStrictlyIncreasingTicks()
Declaration
public void MultipleMutations_EachProduceStrictlyIncreasingTicks()
Mutation_AfterLoadingATickFarInTheFuture_StillProducesAStrictlyGreaterTick()
Declaration
public Task Mutation_AfterLoadingATickFarInTheFuture_StillProducesAStrictlyGreaterTick()
Returns
PersistAsync_ThenLoadAsyncOnANewService_RestoresProgress()
Declaration
public Task PersistAsync_ThenLoadAsyncOnANewService_RestoresProgress()
Returns
SetCustomPayload_ThenGetCustomPayload_RoundTrips()
Declaration
public void SetCustomPayload_ThenGetCustomPayload_RoundTrips()
UnlockExtra_AlreadyUnlocked_IsIdempotentAndDoesNotRedispatch()
Declaration
public void UnlockExtra_AlreadyUnlocked_IsIdempotentAndDoesNotRedispatch()
UnlockExtra_NewExtra_UnlocksAndDispatchesSignal()
Declaration
public void UnlockExtra_NewExtra_UnlocksAndDispatchesSignal()
Declaration
public void UnlockExtra_NullOrEmpty_IsIgnored()