logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class SerenityHubWindowTests

    Smoke-level EditMode coverage for SerenityHubWindow (spec §2, §11; design migration note).

    The window's CreateGUI tree, real UI Toolkit click/keyboard dispatch, pro/personal skin rendering, and the first-import auto-open flow are NOT assertable headless without a real, focused editor window — deferred to the manual verification pass (tasks 7.4). The window's managed state after Open() IS assertable headless, once the graphic-device errors it logs are declared as noise: see Serenity.Hub.Tests.Editor.SerenityHubWindowTests.IgnoreHeadlessGraphicDeviceErrors. What CreateGUI wires up (sidebar order, initial view, seven registered views) is already covered structurally: SerenityHubNavigator's own "first run defaults to Home" contract is unit-tested in Slice 5's SerenityHubNavigatorTests, and every individual view class has its own OnShow test coverage — this file only asserts what is specific to the window shell itself.

    Inheritance
    object
    SerenityHubWindowTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Hub.Tests.Editor
    Assembly: Serenity.Hub.Tests.Editor.dll
    Syntax
    public class SerenityHubWindowTests

    Constructors

    SerenityHubWindowTests()

    Declaration
    public SerenityHubWindowTests()

    Methods

    BuildSidebar_WithSystemsViewRegistered_RendersASystemsButton()

    Declaration
    public void BuildSidebar_WithSystemsViewRegistered_RendersASystemsButton()

    Open_ResolvesToExactlyOneWindow()

    Declaration
    public void Open_ResolvesToExactlyOneWindow()

    Open_SetsMinSizeToExactly780x520()

    Declaration
    public void Open_SetsMinSizeToExactly780x520()

    Open_WithAPersistedViewIdThatHasNoRegisteredView_FallsBackToHome()

    Declaration
    public void Open_WithAPersistedViewIdThatHasNoRegisteredView_FallsBackToHome()

    PrefsKeyDontAutoOpen_KeepsThePreservedBaselineKeyName()

    Declaration
    public void PrefsKeyDontAutoOpen_KeepsThePreservedBaselineKeyName()

    SidebarViewIdOrder_PlacesSystemsRightAfterHomeAndLearnLast()

    Declaration
    public void SidebarViewIdOrder_PlacesSystemsRightAfterHomeAndLearnLast()

    TearDown()

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