logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class ProjectWiringPlanCachePlayModeTests

    Building the wiring plan opens the existing boot scene, which the editor refuses while it is playing (InvalidOperationException: This cannot be used during play mode.). An Initialize Serenity window left open when the author presses Play must therefore never plan, and must say why instead.

    Inheritance
    object
    ProjectWiringPlanCachePlayModeTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.CreateGame.Tests.Editor
    Assembly: Serenity.CreateGame.Tests.Editor.dll
    Syntax
    public class ProjectWiringPlanCachePlayModeTests

    Constructors

    ProjectWiringPlanCachePlayModeTests()

    Declaration
    public ProjectWiringPlanCachePlayModeTests()

    Methods

    DescribeError_WhileTheEditorIsPlaying_AsksTheAuthorToExitPlayMode()

    Declaration
    public void DescribeError_WhileTheEditorIsPlaying_AsksTheAuthorToExitPlayMode()

    DoneStep_RepaintedWhileTheEditorIsEditing_StillBuildsNoPlan()

    The Play-mode gate is the second line of defence; the first is that the Done step never asks for a plan at all, which only an editing gate — one that would let a plan build — can tell apart.

    Declaration
    public void DoneStep_RepaintedWhileTheEditorIsEditing_StillBuildsNoPlan()

    DoneStep_RepaintedWhileTheEditorIsPlaying_ThrowsNothingAndBuildsNoPlan()

    The exact W5A-6 repro: the author finishes a run, leaves the window on its Done step and presses Play, and every repaint afterwards threw "This cannot be used during play mode." from a plan the Done step never needed. A headless run cannot host the GUI calls, so the case drives everything that repaint reads short of painting.

    Declaration
    public void DoneStep_RepaintedWhileTheEditorIsPlaying_ThrowsNothingAndBuildsNoPlan()

    Ensure_WhileTheEditorIsEditing_BuildsThePlanOnce()

    Declaration
    public void Ensure_WhileTheEditorIsEditing_BuildsThePlanOnce()

    Ensure_WhileTheEditorIsPlaying_NeverBuildsThePlan()

    Declaration
    public void Ensure_WhileTheEditorIsPlaying_NeverBuildsThePlan()

    Refresh_WhileTheEditorIsPlaying_NeverBuildsThePlan()

    Declaration
    public void Refresh_WhileTheEditorIsPlaying_NeverBuildsThePlan()

    SetUp()

    Declaration
    public void SetUp()

    StepError_OnSummaryAndCreateStepsWhileTheEditorIsPlaying_NamesPlayModeAndBuildsNoPlan()

    Declaration
    public void StepError_OnSummaryAndCreateStepsWhileTheEditorIsPlaying_NamesPlayModeAndBuildsNoPlan()

    TearDown()

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