logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityPlayerInputSlotsTests

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

    Inheritance
    object
    UnityPlayerInputSlotsTests
    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 UnityPlayerInputSlotsTests

    Constructors

    UnityPlayerInputSlotsTests()

    Declaration
    public UnityPlayerInputSlotsTests()

    Methods

    ClearAll_RemovesAllSlots()

    Declaration
    public void ClearAll_RemovesAllSlots()

    Current_WhenFreshlyCreated_IsEmpty()

    Declaration
    public void Current_WhenFreshlyCreated_IsEmpty()

    SetUp()

    Declaration
    public void SetUp()

    TearDown()

    Declaration
    public void TearDown()

    TryAssignNextFree_AfterRemovingLowerIndex_ReusesFreedIndex()

    Declaration
    public void TryAssignNextFree_AfterRemovingLowerIndex_ReusesFreedIndex()

    TryAssignNextFree_WhenDeviceAlreadyAssigned_ReturnsFalse()

    Declaration
    public void TryAssignNextFree_WhenDeviceAlreadyAssigned_ReturnsFalse()

    TryAssignNextFree_WhenDeviceIdEmpty_ReturnsFalse()

    Declaration
    public void TryAssignNextFree_WhenDeviceIdEmpty_ReturnsFalse()

    TryAssignNextFree_WhenDeviceIdNull_ReturnsFalse()

    Declaration
    public void TryAssignNextFree_WhenDeviceIdNull_ReturnsFalse()

    TryAssignNextFree_WhenNewDevice_AddsSlotAtIndexZero()

    Declaration
    public void TryAssignNextFree_WhenNewDevice_AddsSlotAtIndexZero()

    TryAssignNextFree_WhenSecondDevice_UsesNextFreeIndex()

    Declaration
    public void TryAssignNextFree_WhenSecondDevice_UsesNextFreeIndex()

    TryUnassignByDevice_WhenDeviceMissing_ReturnsFalse()

    Declaration
    public void TryUnassignByDevice_WhenDeviceMissing_ReturnsFalse()

    TryUnassignByDevice_WhenDevicePresent_RemovesAndReturnsTrue()

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