logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    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
    object
    GameProgressServiceTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.GameProgress.Tests.Application
    Assembly: Tests.dll
    Syntax
    public class GameProgressServiceTests

    Constructors

    GameProgressServiceTests()

    Declaration
    public GameProgressServiceTests()

    Methods

    GetProgress_AfterLoadAsync_DoesNotWarn()

    Declaration
    public Task GetProgress_AfterLoadAsync_DoesNotWarn()
    Returns
    Type Description
    Task

    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()

    IsExtraUnlocked_UnknownExtra_ReturnsFalse()

    Declaration
    public void IsExtraUnlocked_UnknownExtra_ReturnsFalse()

    LoadAsync_NothingPersistedYet_YieldsEmptyProgress()

    Declaration
    public Task LoadAsync_NothingPersistedYet_YieldsEmptyProgress()
    Returns
    Type Description
    Task

    MultipleMutations_EachProduceStrictlyIncreasingTicks()

    Declaration
    public void MultipleMutations_EachProduceStrictlyIncreasingTicks()

    Mutation_AfterLoadingATickFarInTheFuture_StillProducesAStrictlyGreaterTick()

    Declaration
    public Task Mutation_AfterLoadingATickFarInTheFuture_StillProducesAStrictlyGreaterTick()
    Returns
    Type Description
    Task

    PersistAsync_ThenLoadAsyncOnANewService_RestoresProgress()

    Declaration
    public Task PersistAsync_ThenLoadAsyncOnANewService_RestoresProgress()
    Returns
    Type Description
    Task

    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()

    UnlockExtra_NullOrEmpty_IsIgnored()

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