logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class 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.

    Inheritance
    object
    HostedChildManagerTests
    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.Infrastructure.Views
    Assembly: Tests.dll
    Syntax
    public class HostedChildManagerTests

    Constructors

    HostedChildManagerTests()

    Declaration
    public HostedChildManagerTests()

    Methods

    Constructor_NullContentRoot_Throws()

    Declaration
    public void Constructor_NullContentRoot_Throws()

    HostedSizeChanged_AfterRelease_IsIgnored()

    Declaration
    public void HostedSizeChanged_AfterRelease_IsIgnored()

    HostedSizeChanged_FixedSlot_DoesNotReReserveButStillNotifies()

    Declaration
    public void HostedSizeChanged_FixedSlot_DoesNotReReserveButStillNotifies()

    HostedSizeChanged_WhileMountedAuto_ReReservesSlotAndNotifiesOwner()

    Declaration
    public void HostedSizeChanged_WhileMountedAuto_ReReservesSlotAndNotifiesOwner()

    SetUp()

    Declaration
    public void SetUp()

    ShowHideShowCycle_DoesNotLeakSizeChangedSubscriptions()

    Declaration
    public void ShowHideShowCycle_DoesNotLeakSizeChangedSubscriptions()

    TearDown()

    Declaration
    public void TearDown()

    TryHide_MountedChild_RestoresAndReparentsBack()

    Declaration
    public void TryHide_MountedChild_RestoresAndReparentsBack()

    TryHide_RegisteredButNotMounted_IsHandledWithoutHiding()

    Declaration
    public void TryHide_RegisteredButNotMounted_IsHandledWithoutHiding()

    TryShow_RegisteredChild_MountsUnderContentRootAndShows()

    Declaration
    public void TryShow_RegisteredChild_MountsUnderContentRootAndShows()

    TryShow_UnregisteredChild_ReturnsFalse()

    Declaration
    public void TryShow_UnregisteredChild_ReturnsFalse()
    In this article
    © 2026 Serenity. All Rights Reserved