logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityStageServiceTests

    PlayMode tests for UnityStageService. Covers initialization, prefab instantiation (null + real), authoring-component extraction, and the stage lifecycle (start / complete / fail / snapshot).

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

    Constructors

    UnityStageServiceTests()

    Declaration
    public UnityStageServiceTests()

    Methods

    CompleteStage_AfterStart_SetsStatusCompleted()

    Declaration
    public void CompleteStage_AfterStart_SetsStatusCompleted()

    CompleteStage_BeforeStart_DoesNotThrow()

    Declaration
    public void CompleteStage_BeforeStart_DoesNotThrow()

    FailStage_AfterStart_SetsStatusFailed()

    Declaration
    public void FailStage_AfterStart_SetsStatusFailed()

    GetSnapshot_BeforeStart_ReturnsDefault()

    Declaration
    public void GetSnapshot_BeforeStart_ReturnsDefault()

    Implements_StageServiceAndRuntimeInterfaces()

    Declaration
    public void Implements_StageServiceAndRuntimeInterfaces()

    InitializeService_SetsIdAndGuid()

    Declaration
    public void InitializeService_SetsIdAndGuid()

    InstantiateStagePrefab_ExtractsStageRootAndSpawnResolver()

    Declaration
    public void InstantiateStagePrefab_ExtractsStageRootAndSpawnResolver()

    InstantiateStagePrefab_Null_LeavesAuthoringRefsNull()

    Declaration
    public void InstantiateStagePrefab_Null_LeavesAuthoringRefsNull()

    InstantiateStagePrefab_Null_ReturnsNull()

    Declaration
    public void InstantiateStagePrefab_Null_ReturnsNull()

    InstantiateStagePrefab_RealPrefab_ParentsInstanceUnderWrapper()

    Declaration
    public void InstantiateStagePrefab_RealPrefab_ParentsInstanceUnderWrapper()

    SetUp()

    Declaration
    public void SetUp()

    StartStage_SetsSnapshotToInProgress()

    Declaration
    public void StartStage_SetsSnapshotToInProgress()

    TearDown()

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