logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    HudElementStretchDefaultsTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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()
    In this article
    © 2026 Serenity. All Rights Reserved