logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Namespace Serenity.UnityGameMode.Tests.Infrastructure

    Classes

    GameModeMusicBinderComponentTests

    Tests for Serenity.GameMode.Infrastructure.Components.GameModeMusicBinderComponent: entering a mapped game mode dispatches that mode's Signal Definition, entering an unmapped mode does nothing, and disabling unsubscribes.

    UnityGameModeServiceTests

    Tests for Serenity.GameMode.Infrastructure.Services.UnityGameModeService, the MonoBehaviour that owns the Menu/Game/Pause state machine. The service is driven through AddComponent with spy ports (pause strategy, event dispatcher) and a real settings ScriptableObject. Only the synchronous, scene-free surface is exercised: mode-state transitions, the Game↔Pause flow, pause-strategy coordination and signal dispatch. Additive scene loading/unloading, input-action binding and the loading overlay run through coroutines and real scenes and are intentionally out of scope here.

    In this article
    © 2026 Serenity. All Rights Reserved