logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Namespace Serenity.UiThemeValidation.Tests.Editor

    Classes

    LeaderboardThemeRetrofitterTests

    EditMode tests for RetrofitTheme(UnityUiThemeDefinition, bool, bool) against a minimal fixture theme under a temp folder. Deliberately never calls RetrofitAllThemesMissingLeaderboard(bool, bool): that entry point scans every UnityUiThemeDefinition in the whole project, so exercising it here would retrofit the real shipped themes as a side effect of running the test suite.

    ThemeCreatorLeaderboardTests

    EditMode tests for the Leaderboard.prefab generated by ChromePrefabBuilders.BuildLeaderboard as part of a full theme generation run. Exercised end-to-end through the public SerenityThemeBuilderRunner entry point rather than calling ThemeCreator directly, since ThemeCreator/GenerationContext/ChromePrefabBuilders are internal to the Ui Installation Editor assembly and this test assembly has no InternalsVisibleTo grant into it.

    UiThemeValidatorEngineTests

    EditMode tests for UiThemeValidatorEngine's LeaderboardTemplate slot check. Mirrors the optional cascade-view slot's contract: null is allowed, and when set the prefab must carry a component named "UnityLeaderboardPanel".

    In this article
    © 2026 Serenity. All Rights Reserved