logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class MainMenuGraphLoaderTests

    EditMode tests for Serenity.Menu.Infrastructure.Editor.Builder.MainMenuGraphLoader.Load(Serenity.Menu.Application.Navigation.IMenuNavigationLookup,System.String): a chain of menus reachable from a temp InitialViewId, an unset InitialViewId, and no settings asset at all. searchRootFolder is always this fixture's temp folder, so the run never resolves the package-shipped Assets/Serenity/Media/Ui/UiSettings.asset singleton instead of the fixture.

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

    Constructors

    MainMenuGraphLoaderTests()

    Declaration
    public MainMenuGraphLoaderTests()

    Methods

    Load_AdoptedUiSettingsBesideTheShippedOne_LoadsTheGraphFromTheAdoptedCopy()

    An adopted project holds its own UI settings beside the shipped one, and the game boots on its own copy — so loading the main menu graph must walk from the adopted copy's Initial View rather than refuse the shipped default as a second candidate. Scans the whole project on purpose: the shipped copy has to be in the scan for this to prove anything.

    Declaration
    public void Load_AdoptedUiSettingsBesideTheShippedOne_LoadsTheGraphFromTheAdoptedCopy()

    Load_CompositeRootHostsAnUnlabeledMenu_TheHostedMenuAppearsAsAMenuAndNothingIsUnresolved()

    Regression test for the owner-reported bug: a composite's hosted menus are deliberately never Addressable-labeled, so before the catalog learned them by structure, the walker could not type them as menus at all — they never became drafts, and every one of their Hosted edges reported a false "does not resolve to any view" Error. The hosted menu must load exactly like a labeled one.

    Declaration
    public void Load_CompositeRootHostsAnUnlabeledMenu_TheHostedMenuAppearsAsAMenuAndNothingIsUnresolved()

    Load_EmptyInitialViewId_ReturnsBlockingNoteAndNoMenus()

    Declaration
    public void Load_EmptyInitialViewId_ReturnsBlockingNoteAndNoMenus()

    Load_MenuTransitionsToALeaderboardViewWhoseReturnPointsAtASecondMenu_ViewsHasMenuLeaderboardMenuInOrder()

    Declaration
    public void Load_MenuTransitionsToALeaderboardViewWhoseReturnPointsAtASecondMenu_ViewsHasMenuLeaderboardMenuInOrder()

    Load_MenusChainedFromInitialViewId_ReturnsThemInReachabilityOrder()

    Declaration
    public void Load_MenusChainedFromInitialViewId_ReturnsThemInReachabilityOrder()

    Load_MultipleSettingsAssetsInSearchRoot_ReturnsBlockingNoteNamingBothPaths()

    Declaration
    public void Load_MultipleSettingsAssetsInSearchRoot_ReturnsBlockingNoteNamingBothPaths()

    Load_NoSettingsAssetInSearchRoot_ReturnsBlockingNote()

    Declaration
    public void Load_NoSettingsAssetInSearchRoot_ReturnsBlockingNote()

    TearDown()

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