Class HudElementStretchDefaultsTests
EditMode tests for Stretch's migration fallback: a HUD serialized
before the field existed deserializes it as (0, 0), which the getter must still read back as
(1, 1) with no manual step.
Inherited Members
Namespace: Serenity.GameUi.Tests.Editor.Builder
Assembly: Serenity.GameUi.Tests.Editor.dll
Syntax
public class HudElementStretchDefaultsTests
Constructors
HudElementStretchDefaultsTests()
Declaration
public HudElementStretchDefaultsTests()
Methods
Stretch_ANewlyCreatedElement_ReportsUniformProportions()
Declaration
public void Stretch_ANewlyCreatedElement_ReportsUniformProportions()
Stretch_DeserializedAsZero_FallsBackToUniformProportions()
Declaration
public void Stretch_DeserializedAsZero_FallsBackToUniformProportions()
Stretch_DeserializedWithANegativeComponent_NormalizesOnlyThatComponent()
Declaration
public void Stretch_DeserializedWithANegativeComponent_NormalizesOnlyThatComponent()
TearDown()
Declaration
public void TearDown()