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.
Inherited Members
Namespace: Serenity.Menu.Tests.Editor
Assembly: Serenity.Menu.Tests.Editor.dll
Syntax
public class MainMenuGraphLoaderTests
Constructors
MainMenuGraphLoaderTests()
Declaration
public MainMenuGraphLoaderTests()
Methods
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()