Namespace Serenity.Menu.Tests.Domain
Classes
HorizontalOptionWidthModeTests
Tests for Serenity.Menu.Domain.Enums.HorizontalOptionWidthMode. Serenity.Menu.Domain.Enums.HorizontalOptionWidthMode.CONTENT must be value 0 so existing horizontal menus keep their historical per-option content sizing when no value is stored; the remaining modes have stable, distinct values.
MenuDirectionTests
Tests for Serenity.Menu.Domain.Enums.MenuDirection. These lock the value contract that keeps the horizontal feature backward-compatible: the default (value 0) must be Serenity.Menu.Domain.Enums.MenuDirection.VERTICAL so existing serialized assets — which store no value — deserialize to the historical layout.
MenuInstantiationModeTests
Tests for Serenity.Menu.Domain.Enums.MenuInstantiationMode.
These lock the value contract that keeps PR2 backward-compatible: the default (value 0) must be
Serenity.Menu.Domain.Enums.MenuInstantiationMode.PreloadOnStartup so existing serialized menu assets — which
store no value for this field — deserialize to the current eager-construction behavior.
MenuScrollPolicyTests
Tests for Serenity.Menu.Domain.Entities.MenuScrollPolicy: the pure rule deciding when a menu clamps its options area to the configured visible rows and scrolls the overflow.