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 Serenity.SystemConfiguration.Infrastructure.Helpers.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 Serenity.SystemConfiguration.Infrastructure.Structs.UnitySnapshotKeyMap struct. Confirms field storage and value-type semantics.

    UnitySnapshotValueParsersTests

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

    UnitySystemConfigurationServiceFactoryTests

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

    UnitySystemConfigurationServiceTests

    Tests for the Serenity.SystemConfiguration.Infrastructure.Services.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 Serenity.SystemConfiguration.Infrastructure.Settings.UnitySystemConfigurationSettings ScriptableObject. Verifies default field values and the explicit Serenity.SystemConfiguration.Application.Entities.ISystemConfigurationSettings interface projection (including the SyncMap struct-to-domain mapping).

    UnitySystemConfigurationSnapshotTests

    Tests for Serenity.SystemConfiguration.Infrastructure.Services.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 Serenity.SystemConfiguration.Infrastructure.Services.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