Class UnityMenuAnchorUtilsTests
Tests for Serenity.Menu.Infrastructure.Views.Factories.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.
Inherited Members
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()