logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnitySpawnFactoryTests

    Tests for Serenity.GameSpawner.Infrastructure.Factories.UnitySpawnFactory, the Unity GameObject-backed implementation of Serenity.GameSpawner.Application.Interfaces.Factories.ISpawnFactory. Exercises creation, destruction, parenting and bulk removal of spawned GameObjects.

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

    Constructors

    UnitySpawnFactoryTests()

    Declaration
    public UnitySpawnFactoryTests()

    Methods

    Create_CalledTwice_ReturnsDistinctHandles()

    Declaration
    public void Create_CalledTwice_ReturnsDistinctHandles()

    Create_NamesGameObject_UsingTypeAndInstanceId()

    Declaration
    public void Create_NamesGameObject_UsingTypeAndInstanceId()

    Create_ReturnsHandle_WithRequestedType()

    Declaration
    public void Create_ReturnsHandle_WithRequestedType()

    Create_SpawnsChildGameObject_ParentedToFactory()

    Declaration
    public void Create_SpawnsChildGameObject_ParentedToFactory()

    DestroyAll_OnlyTargetsMatchingType()

    Declaration
    public void DestroyAll_OnlyTargetsMatchingType()

    DestroyAll_UnknownType_DoesNotThrow()

    Declaration
    public void DestroyAll_UnknownType_DoesNotThrow()

    Destroy_KnownHandle_RemovesChildGameObject()

    Declaration
    public void Destroy_KnownHandle_RemovesChildGameObject()

    Destroy_UnknownHandle_DoesNotThrow()

    Declaration
    public void Destroy_UnknownHandle_DoesNotThrow()

    Factory_Implements_ISpawnFactory()

    Declaration
    public void Factory_Implements_ISpawnFactory()

    SetUp()

    Declaration
    public void SetUp()

    TearDown()

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