osu.Framework.Tests/Visual/UserInterface/TestCaseNestedMenus.cs
/// <summary>
/// Tests if the <see cref="Menu"/> respects <see cref="Menu.TopLevelMenu"/> = true, by not alowing it to be closed
/// when a click happens outside the <see cref="Menu"/>.
/// </summary>
Tests if the  respects  = true, by not alowing it to be closed
when a click happens outside the .
Tests if the respects = true by not alowing it to be closed when a click happens outside the .
[Test]
        public void TestAlwaysOpen()
        {
            AddStep("Click outside", () => InputManager.Click(MouseButton.Left));
            AddAssert("Check AlwaysOpen = true", () => menus.GetSubMenu(0).State == MenuState.Open);
        }
[ Test ] public void TestAlwaysOpen ( ) { AddStep ( " " , ( ) => InputManager . Click ( MouseButton . Left ) ) ; AddAssert ( " " , ( ) => menus . GetSubMenu ( 0 ) . State == MenuState . Open ) ; }
Tests if the  respects  = true, by not alowing it to be closed
when a click happens outside the .
Tests if the respects = true by not alowing it to be closed when a click happens outside the .