logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityPercentLayoutElementTests

    Tests for Serenity.Ui.Infrastructure.Views.UnityPercentLayoutElement: the component that realizes the CSS % unit by driving a UnityEngine.UI.LayoutElement's preferred size to a fraction of its parent's measured size, with optional min/max pixel clamps, on either axis.

    Inheritance
    object
    UnityPercentLayoutElementTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Ui.Tests.Infrastructure.Views
    Assembly: Tests.dll
    Syntax
    public class UnityPercentLayoutElementTests

    Constructors

    UnityPercentLayoutElementTests()

    Declaration
    public UnityPercentLayoutElementTests()

    Methods

    Configure_Horizontal_SetsPreferredWidthToParentFraction()

    Declaration
    public void Configure_Horizontal_SetsPreferredWidthToParentFraction()

    Configure_PercentAboveHundred_ClampsToParentSize()

    Declaration
    public void Configure_PercentAboveHundred_ClampsToParentSize()

    Configure_Vertical_SetsPreferredHeightToParentFraction()

    Declaration
    public void Configure_Vertical_SetsPreferredHeightToParentFraction()

    Configure_WithMaxClamp_LowersComputedSizeToMaximum()

    Declaration
    public void Configure_WithMaxClamp_LowersComputedSizeToMaximum()

    Configure_WithMinClamp_RaisesComputedSizeToMinimum()

    Declaration
    public void Configure_WithMinClamp_RaisesComputedSizeToMinimum()

    SetUp()

    Declaration
    public void SetUp()

    TearDown()

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