logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class LayoutSizeTests

    Behavioral tests for LayoutSize: factory helpers, Parse of CSS tokens, min/max clamps, and ToString.

    Inheritance
    object
    LayoutSizeTests
    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.Domain
    Assembly: Tests.dll
    Syntax
    public class LayoutSizeTests

    Constructors

    LayoutSizeTests()

    Declaration
    public LayoutSizeTests()

    Methods

    Auto_SetsAutoUnit()

    Declaration
    public void Auto_SetsAutoUnit()

    Clamp_AboveMax_LowersToMax()

    Declaration
    public void Clamp_AboveMax_LowersToMax()

    Clamp_BelowMin_RaisesToMin()

    Declaration
    public void Clamp_BelowMin_RaisesToMin()

    Clamp_NoClamps_ReturnsUnchanged()

    Declaration
    public void Clamp_NoClamps_ReturnsUnchanged()

    Clamp_WithinBounds_ReturnsUnchanged()

    Declaration
    public void Clamp_WithinBounds_ReturnsUnchanged()

    Fixed_StoresPixelsAndUnit()

    Declaration
    public void Fixed_StoresPixelsAndUnit()

    Flex_DefaultWeightIsOne()

    Declaration
    public void Flex_DefaultWeightIsOne()

    Flex_StoresGivenWeight()

    Declaration
    public void Flex_StoresGivenWeight()

    Parse_Auto_ReturnsAuto()

    Declaration
    public void Parse_Auto_ReturnsAuto()

    Parse_BareNumber_TreatedAsFixedPixels()

    Declaration
    public void Parse_BareNumber_TreatedAsFixedPixels()

    Parse_DecimalUsesInvariantCulture()

    Declaration
    public void Parse_DecimalUsesInvariantCulture()

    Parse_Fr_ReturnsFlex()

    Declaration
    public void Parse_Fr_ReturnsFlex()

    Parse_IsCaseInsensitiveAndTrims()

    Declaration
    public void Parse_IsCaseInsensitiveAndTrims()

    Parse_NonNumericToken_ThrowsFormatException()

    Declaration
    public void Parse_NonNumericToken_ThrowsFormatException()

    Parse_Null_ThrowsFormatException()

    Declaration
    public void Parse_Null_ThrowsFormatException()

    Parse_Percent_ReturnsPercent()

    Declaration
    public void Parse_Percent_ReturnsPercent()

    Parse_Pixels_ReturnsFixed()

    Declaration
    public void Parse_Pixels_ReturnsFixed()

    Parse_Whitespace_ThrowsFormatException()

    Declaration
    public void Parse_Whitespace_ThrowsFormatException()

    Percent_StoresPercentValueAndUnit()

    Declaration
    public void Percent_StoresPercentValueAndUnit()

    ToString_Auto_ReturnsAuto()

    Declaration
    public void ToString_Auto_ReturnsAuto()

    ToString_Fixed_AppendsPx()

    Declaration
    public void ToString_Fixed_AppendsPx()

    ToString_Flex_AppendsFr()

    Declaration
    public void ToString_Flex_AppendsFr()

    ToString_Percent_AppendsPercentSign()

    Declaration
    public void ToString_Percent_AppendsPercentSign()

    ToString_WithMinMax_AppendsClampSuffix()

    Declaration
    public void ToString_WithMinMax_AppendsClampSuffix()

    ToString_WithOnlyMin_ShowsDashForMax()

    Declaration
    public void ToString_WithOnlyMin_ShowsDashForMax()

    WithMax_SetsHasMaxAndValue()

    Declaration
    public void WithMax_SetsHasMaxAndValue()

    WithMin_SetsHasMinAndValue_LeavesOriginalUnchanged()

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