logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityPrimaryInputGateTests

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

    Inheritance
    object
    UnityPrimaryInputGateTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.InputGateway.Tests.Infrastructure.Components
    Assembly: Tests.dll
    Syntax
    public class UnityPrimaryInputGateTests

    Constructors

    UnityPrimaryInputGateTests()

    Declaration
    public UnityPrimaryInputGateTests()

    Methods

    Cleanup_Permanent_ClearsBothFlags()

    Tests that permanent cleanup clears both _armed and _shouldBeArmed.

    Declaration
    public void Cleanup_Permanent_ClearsBothFlags()

    EnableDisableEnableCycle_ReArmsGate()

    Tests the full enable/disable/enable cycle simulating reparenting under inactive hierarchy.

    Declaration
    public void EnableDisableEnableCycle_ReArmsGate()

    OnDisable_ClearsArmedButPreservesShouldBeArmed()

    Tests that OnDisable clears _armed but preserves _shouldBeArmed for later re-arming.

    Declaration
    public void OnDisable_ClearsArmedButPreservesShouldBeArmed()

    OnEnable_WhenShouldBeArmedAndNotArmed_ReArmsGate()

    Tests that OnEnable re-arms the gate when _shouldBeArmed is true and _armed is false.

    Declaration
    public void OnEnable_WhenShouldBeArmedAndNotArmed_ReArmsGate()

    SetUp()

    Declaration
    public void SetUp()

    TearDown()

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