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