logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UiAnchorMapperTests

    Tests for Serenity.Ui.Domain.Services.UiAnchorMapper: the single anchor→placement-factor mapping shared by the menu positioning utils and the UI preview (horizontal 0=left→1=right; vertical 0=bottom→1=top).

    Inheritance
    object
    UiAnchorMapperTests
    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 UiAnchorMapperTests

    Constructors

    UiAnchorMapperTests()

    Declaration
    public UiAnchorMapperTests()

    Methods

    HorizontalFactor_MapsEveryAnchor(UiAnchorType, float)

    Declaration
    public void HorizontalFactor_MapsEveryAnchor(UiAnchorType anchor, float expected)
    Parameters
    Type Name Description
    UiAnchorType anchor
    float expected

    IsBottom_OnlyForBottomEdgeAnchors()

    Declaration
    public void IsBottom_OnlyForBottomEdgeAnchors()

    VerticalFactor_MapsEveryAnchor(UiAnchorType, float)

    Declaration
    public void VerticalFactor_MapsEveryAnchor(UiAnchorType anchor, float expected)
    Parameters
    Type Name Description
    UiAnchorType anchor
    float expected
    In this article
    © 2026 Serenity. All Rights Reserved