logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Namespace Serenity.Score.Tests.Editor.Builder

    Classes

    ScoreMetricInPlaceMutationTests

    Regression coverage for the ordering bug fixed in ScoreMetricsTableGui.DrawKeyField: the row's Key used to be persisted BEFORE it was actually mutated, so the wizard's Create/Next button read the stale key. ScoreMetricSetting is a reference type, and Create(Input) assigns input.Metrics straight onto the created asset without copying it — so any in-place mutation of a row already referenced by Metrics, made at any point before Create runs, must be observed by the created asset. Fixture pattern mirrored from ScoreSettingsCreatorTests.

    ScoreSettingsCreatorTests

    EditMode tests for ScoreSettingsCreator. Every test targets a fixture asset under a private temp folder — the real project-wide singleton (used by the production wizard) is never touched, so these tests stay hermetic regardless of what the project already has configured. Mirrors Serenity.GameSave.Tests.Editor.Builder.GameSaveCreatorTests.

    In this article
    © 2026 Serenity. All Rights Reserved