logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Namespace Serenity.InputGateway.Tests.Infrastructure.Components

    Classes

    UnityInputActionInvokerTests

    PlayMode tests for Serenity.InputGateway.Infrastructure.Components.UnityInputActionInvoker. Each test builds a live scene against a programmatically-created action asset (no control schemes, so the keyboard binding is always active), simulates key events via UnityEngine.InputSystem.InputTestFixture, and asserts the mapped parameterless methods fire for the configured phase. Inheriting UnityEngine.InputSystem.InputTestFixture isolates and resets the input system per test.

    UnityPlayerInputSlotsTests

    Tests for UnityPlayerInputSlots slot assignment, unassignment, and tracking behavior.

    UnityPrimaryDeviceSelectorTests

    Tests for UnityPrimaryDeviceSelector.Initialize. The AwaitAsync path needs live unpaired-device activity from the Unity Input System, so only the dependency-injection branch is covered here.

    UnityPrimaryInputGateTests

    Tests for UnityPrimaryInputGate lifecycle behavior. Ensures the gate properly re-arms in OnEnable after hierarchy changes.

    UnityUiInputRouterTests

    Tests for UnityUiInputRouter guard clauses that do not require live input devices. The routing paths that pair real devices need the Unity Input System runtime, so only the null-dependency early-return branches are exercised here.

    In this article
    © 2026 Serenity. All Rights Reserved