logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityTextMeasurementUtilsTests

    Tests for UnityTextMeasurementUtils. Editor-only.

    Inheritance
    object
    UnityTextMeasurementUtilsTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.UnityGlobal.Tests.Editor
    Assembly: Tests.Editor.dll
    Syntax
    public class UnityTextMeasurementUtilsTests

    Constructors

    UnityTextMeasurementUtilsTests()

    Declaration
    public UnityTextMeasurementUtilsTests()

    Methods

    ComputePreferredWidth_LongerString_MeasuresWider()

    Declaration
    public void ComputePreferredWidth_LongerString_MeasuresWider()

    ComputePreferredWidth_NullContent_MeasuresAsEmptyString()

    Declaration
    public void ComputePreferredWidth_NullContent_MeasuresAsEmptyString()

    ComputePreferredWidth_NullText_ReturnsZero()

    Declaration
    public void ComputePreferredWidth_NullText_ReturnsZero()

    ComputeSingleLineHeight_AutoSizingDisabled_ScalesFontSizeByFaceInfoRatio()

    Declaration
    public void ComputeSingleLineHeight_AutoSizingDisabled_ScalesFontSizeByFaceInfoRatio()

    ComputeSingleLineHeight_AutoSizingEnabled_UsesFontSizeMaxNotFontSize()

    Declaration
    public void ComputeSingleLineHeight_AutoSizingEnabled_UsesFontSizeMaxNotFontSize()

    ComputeSingleLineHeight_NullText_ReturnsZero()

    Declaration
    public void ComputeSingleLineHeight_NullText_ReturnsZero()

    SetUp()

    Declaration
    public void SetUp()

    TearDown()

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