logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Namespace Serenity.CreateGame.Tests.Editor

    Classes

    CreateGameGeneratedAssetsBuilderTests

    EditMode tests for Serenity.CreateGame.Infrastructure.Editor.CreateGameGeneratedAssetsBuilder: the pure id-to-field mapping the Create Game wizard's Create step relies on to turn a SerenityRecipeReport into CreateGameGeneratedAssets. No AssetDatabase access — the report's asset actions are hand-built, mirroring the id set SerenityCreateGameSceneGeneratorTests's seam test exercises against a real recipe run.

    CreateGameThemeCatalogTests

    EditMode test for Serenity.CreateGame.Infrastructure.Editor.CreateGameThemeCatalog: read-only against the project's real shipped themes under Assets/Serenity/Media/Ui/Themes — no temp folder needed, nothing is written or cleaned up.

    SerenityBuildSettingsBinderTests

    EditMode tests for Serenity.CreateGame.Infrastructure.Editor.SerenityBuildSettingsBinder. UnityEditor.EditorBuildSettings.scenes is this dev project's REAL boot configuration (it ships Serenity_InitializationScene + GameScene), so every test snapshots the full array in SetUp() and restores it unconditionally in TearDown() — which then asserts the restore actually landed, so a leak into the shared project state fails loudly in the same run instead of silently corrupting it for whatever runs next.

    SerenityCreateGameBootSceneTests

    EditMode tests for the Create Game boot-scene engine. Every test that touches disk points at a private temp folder — the shipped Serenity.CreateGame.Infrastructure.Editor.CreateGameScenePaths.DefaultRootFolder is never written to — and cleans up both the assets and their Addressables entries in TearDown(), mirroring SerenitySampleSceneGeneratorTests.

    SerenityCreateGameSceneGeneratorTests

    EditMode tests for SerenityCreateGameSceneGenerator. Every test that touches disk points at a private temp folder — the shipped Serenity.CreateGame.Infrastructure.Editor.CreateGameScenePaths.DefaultRootFolder is never written to — and cleans up both the assets and their Addressables entries in TearDown(), mirroring SerenityCreateGameBootSceneTests and SerenitySampleSceneGeneratorTests.

    In this article
    © 2026 Serenity. All Rights Reserved