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.
Inherited Members
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()