logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityGameSpawnerServiceTests

    Tests for UnityGameSpawnerService. Uses a spy ISpawnFactory so that spawn/despawn bookkeeping and pool-state reporting can be verified without creating real GameObjects.

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

    Constructors

    UnityGameSpawnerServiceTests()

    Declaration
    public UnityGameSpawnerServiceTests()

    Methods

    DespawnAll_ByType_ClearsActiveAndDelegates()

    Declaration
    public void DespawnAll_ByType_ClearsActiveAndDelegates()

    DespawnAll_Global_ClearsEveryType()

    Declaration
    public void DespawnAll_Global_ClearsEveryType()

    DespawnAll_WithRecyclingFactory_ReleasesInsteadOfDestroying()

    Declaration
    public void DespawnAll_WithRecyclingFactory_ReleasesInsteadOfDestroying()

    Despawn_NonRecyclingFactory_KeepsLegacyDestroyBehavior_AndAvailableStaysZero()

    Declaration
    public void Despawn_NonRecyclingFactory_KeepsLegacyDestroyBehavior_AndAvailableStaysZero()

    Despawn_RemovesFromActive_AndDelegatesToFactory()

    Declaration
    public void Despawn_RemovesFromActive_AndDelegatesToFactory()

    Despawn_SameHandleTwice_UnderRecycling_KeepsParkedInstanceAndCounts()

    Declaration
    public void Despawn_SameHandleTwice_UnderRecycling_KeepsParkedInstanceAndCounts()

    Despawn_SameHandleTwice_WithSpyRecyclingFactory_DoesNotDestroy()

    Declaration
    public void Despawn_SameHandleTwice_WithSpyRecyclingFactory_DoesNotDestroy()

    Despawn_UnknownHandle_StillDelegatesToFactory()

    Declaration
    public void Despawn_UnknownHandle_StillDelegatesToFactory()

    Despawn_WithRecyclingFactory_DeactivatesInsteadOfDestroying()

    Declaration
    public void Despawn_WithRecyclingFactory_DeactivatesInsteadOfDestroying()

    GetPoolState_ReflectsActiveCount()

    Declaration
    public void GetPoolState_ReflectsActiveCount()

    GetPoolState_UnknownType_ReturnsZeroActive()

    Declaration
    public void GetPoolState_UnknownType_ReturnsZeroActive()

    GetPoolState_WithRecyclingFactory_ReportsHonestAvailableCountAfterDespawn()

    Declaration
    public void GetPoolState_WithRecyclingFactory_ReportsHonestAvailableCountAfterDespawn()

    InitializeService_AssignsIdAndGuid()

    Declaration
    public void InitializeService_AssignsIdAndGuid()

    IsActive_UnknownHandle_ReturnsFalse()

    Declaration
    public void IsActive_UnknownHandle_ReturnsFalse()

    Service_Implements_IGameSpawnerService()

    Declaration
    public void Service_Implements_IGameSpawnerService()

    SetUp()

    Declaration
    public void SetUp()

    Spawn_AfterDespawn_WithRecyclingFactory_ReusesTheSameHandle()

    Declaration
    public void Spawn_AfterDespawn_WithRecyclingFactory_ReusesTheSameHandle()

    Spawn_DelegatesToFactory_AndReturnsHandle()

    Declaration
    public void Spawn_DelegatesToFactory_AndReturnsHandle()

    Spawn_MarksHandleActive()

    Declaration
    public void Spawn_MarksHandleActive()

    Spawn_WhenReactivateFailsOnADeadInstance_FallsThroughToCreatingANewOne()

    Declaration
    public void Spawn_WhenReactivateFailsOnADeadInstance_FallsThroughToCreatingANewOne()

    TearDown()

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