logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityMenuAnchorUtilsTests

    Tests for UnityMenuAnchorUtils: the pivot/offset math derived from the shared anchor→factor mapping. Verifies pivots per anchor, the inward border-margin sign rule, and the bottom-alignment query.

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

    Constructors

    UnityMenuAnchorUtilsTests()

    Declaration
    public UnityMenuAnchorUtilsTests()

    Methods

    GetAnchorBasedPosition_BottomLeft_PushesInwardPositiveOnBothAxes()

    Declaration
    public void GetAnchorBasedPosition_BottomLeft_PushesInwardPositiveOnBothAxes()

    GetAnchorBasedPosition_Center_AppliesNoOffset()

    Declaration
    public void GetAnchorBasedPosition_Center_AppliesNoOffset()

    GetAnchorBasedPosition_TopRight_PushesInwardNegativeOnBothAxes()

    Declaration
    public void GetAnchorBasedPosition_TopRight_PushesInwardNegativeOnBothAxes()

    GetAnchorPivotForAlignment_BottomRight_ReturnsRightBottom()

    Declaration
    public void GetAnchorPivotForAlignment_BottomRight_ReturnsRightBottom()

    GetAnchorPivotForAlignment_Center_ReturnsHalfHalf()

    Declaration
    public void GetAnchorPivotForAlignment_Center_ReturnsHalfHalf()

    GetAnchorPivotForAlignment_TopLeft_ReturnsLeftTop()

    Declaration
    public void GetAnchorPivotForAlignment_TopLeft_ReturnsLeftTop()

    GetHorizontalAnchorForViewAlignment_Right_ReturnsOne()

    Declaration
    public void GetHorizontalAnchorForViewAlignment_Right_ReturnsOne()

    IsViewYAlignmentBottom_BottomAnchor_ReturnsTrue()

    Declaration
    public void IsViewYAlignmentBottom_BottomAnchor_ReturnsTrue()

    IsViewYAlignmentBottom_TopAnchor_ReturnsFalse()

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