logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Namespace Serenity.UnitySystemConfiguration.Tests.Infrastructure

    Classes

    UnityGameSettingsOptionResolverTests

    Tests for the public static UnityGameSettingsOptionResolver. Exercises every resolution branch: exact key match, label match, default fallback, first-option fallback, preferred override, language normalization and character limit.

    UnitySnapshotKeyMapTests

    Tests for the Unity-serializable UnitySnapshotKeyMap struct. Confirms field storage and value-type semantics.

    UnitySnapshotValueParsersTests

    Tests for the public static UnitySnapshotValueParsers helper. Covers clamping, culture-invariant parsing fallbacks and the snapshot read/parse branches.

    UnitySystemConfigurationServiceFactoryTests

    Tests for UnitySystemConfigurationServiceFactory. Validates the factory contract: creates a GameObject-hosted UnitySystemConfigurationService with the requested name and optional game-settings wiring. Settings disable startup collection to keep the test deterministic.

    UnitySystemConfigurationServiceTests

    Tests for the UnitySystemConfigurationService MonoBehaviour orchestrator. Covers the simple/deterministic paths: pre-init state, the platform guard, snapshot delegation, foundation id round-trip and game-settings injection. Settings disable startup collection / polling so no live snapshot work runs during the test.

    UnitySystemConfigurationSettingsTests

    Tests for the UnitySystemConfigurationSettings ScriptableObject. Verifies default field values and the explicit ISystemConfigurationSettings interface projection (including the SyncMap struct-to-domain mapping).

    UnitySystemConfigurationSnapshotTests

    Tests for UnitySystemConfigurationSnapshot. The full-collection path reads live hardware/display state, so those tests assert only invariants (shape, non-null, counts). The "exclude" branches produce deterministic sentinel values that are asserted exactly.

    UnitySystemMonitorsProviderFactoryTests

    Tests for UnitySystemMonitorsProviderFactory. The concrete provider type is platform-conditional, so we assert the factory contract (implements the interface, returns a usable non-null provider).

    In this article
    © 2026 Serenity. All Rights Reserved