Class UnityPrimaryInputGateTests
Tests for UnityPrimaryInputGate lifecycle behavior. Ensures the gate properly re-arms in OnEnable after hierarchy changes.
Inherited Members
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()