logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class 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.

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

    Constructors

    ScoreMetricInPlaceMutationTests()

    Declaration
    public ScoreMetricInPlaceMutationTests()

    Methods

    Create_MetricKeyMutatedInPlaceAfterBuildingInput_CreatedAssetObservesTheMutatedKey()

    Declaration
    public void Create_MetricKeyMutatedInPlaceAfterBuildingInput_CreatedAssetObservesTheMutatedKey()

    SetUp()

    Declaration
    public void SetUp()

    TearDown()

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