Namespace Serenity.Ui.Tests.Infrastructure.Views
Classes
CompositeFocusRouterTests
Tests for CompositeFocusRouter exercised directly: the SWITCHER content-vs-nav-rail focus split, the input-suppression gate, config guards, and the single-menu wrap edge case — the branches that the view-level cross-nav tests (multi-menu STACK traversal) do not reach.
HostedChildManagerTests
Tests for HostedChildManager: the remount-on-show lifecycle of a composite's shared hosted children — register, mount (reparent in + prepare) on show, release (restore + reparent back) on hide, re-reserve auto slot size on re-measure, and the leak-safe subscribe/unsubscribe contract. Exercised directly against the collaborator rather than through the composite view.
UnityCompositeUiViewChildrenTests
Integration tests for UnityCompositeUiView child management and SWITCHER activation, exercised on a real GameObject (no factory build needed for these paths). Show()/Hide() require the factory-built wrapper and are covered by the factory/hosted-size tests.
UnityCompositeUiViewCrossNavTests
Tests cross-menu focus traversal on UnityCompositeUiView: moving focus between stacked menu children at boundaries (wrap vs stop), and which menu GetInputView() reports as the input target.
UnityCompositeUiViewFactoryHostPathTests
Tests for the composite factory's host-path derivation: each hosted leaf (menu) is resolved with a composite host path so the same definition produces a unique routing id per slot, and duplicate sibling definition ids are flagged.
UnityCompositeUiViewHostedSizeTests
Tests for UnityCompositeUiView hosted-size tracking: while a hosted child is mounted, its HostedSizeChanged re-applies the reserved auto ("fit content") size on the child's LayoutElement; after release the composite must no longer listen.
UnityLayoutBuilderChildSizingTests
Extends UnityLayoutBuilderTests with the child-sizing branches it did not cover: FLEX growth
(with optional min), PERCENT delegation to UnityPercentLayoutElement, hosted auto-size
reservation, layout-group spacing/padding/alignment translation, and the null-argument guards.
UnityLayoutBuilderTests
Tests for UnityLayoutBuilder scroll-container construction: the ScrollRect/Viewport/Content/Scrollbar hierarchy and the explicit scrollable override used to honor the definition-level Scrollable flag.
UnityPercentLayoutElementTests
Tests for UnityPercentLayoutElement: the component that realizes the CSS % unit
by driving a UnityEngine.UI.LayoutElement's preferred size to a fraction of its parent's measured size,
with optional min/max pixel clamps, on either axis.
UnityPrimaryInputPromptViewTests
Tests for UnityPrimaryInputPromptView lifecycle behavior. Ensures input detection re-arms correctly after OnEnable (critical for scene reload scenarios).
UnityScrollbarBuilderTests
Tests for UnityScrollbarBuilder: the programmatic track+handle scrollbar generated for scrollable views, and its wiring onto a ScrollRect with auto-hide visibility.
UnityUiViewSetAudioClipsTests
Regression tests for SetAudioClips(AudioPlayerClip, AudioPlayerClip). Historically it built its clip map with
Dictionary.Add, so a theme that reused one clip for both Show and Hide threw
ArgumentException at view creation. The dedup-safe builder must tolerate that.