logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Namespace Serenity.Ui.Tests.Infrastructure.Views

    Classes

    CompositeFocusRouterTests

    Tests for Serenity.Ui.Infrastructure.Views.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 Serenity.Ui.Infrastructure.Views.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 Serenity.Ui.Infrastructure.Views.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 Serenity.Ui.Infrastructure.Views.UnityCompositeUiView: moving focus between stacked menu children at boundaries (wrap vs stop), and which menu Serenity.Ui.Infrastructure.Views.UnityCompositeUiView.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 Serenity.Ui.Infrastructure.Views.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 Serenity.Ui.Infrastructure.Views.UnityPercentLayoutElement, hosted auto-size reservation, layout-group spacing/padding/alignment translation, and the null-argument guards.

    UnityLayoutBuilderTests

    Tests for Serenity.Ui.Infrastructure.Views.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 Serenity.Ui.Infrastructure.Views.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 Serenity.Ui.Infrastructure.Views.UnityScrollbarBuilder: the programmatic track+handle scrollbar generated for scrollable views, and its wiring onto a ScrollRect with auto-hide visibility.

    In this article
    © 2026 Serenity. All Rights Reserved