osu.Framework.Tests/Visual/UserInterface/TestCaseNestedMenus.cs
/// <summary>
/// Tests if clicking on an item that has no sub-menu causes the menu to close.
/// </summary>
Tests if clicking on an item that has no sub-menu causes the menu to close.
Tests if clicking on an item that has no sub - menu causes the menu to close .
[Test]
        public void TestActionClick()
        {
            AddStep("Click item", () => clickItem(0, 0));
            AddStep("Click item", () => clickItem(1, 0));
            AddAssert("Check closed", () => menus.GetSubMenu(1)?.State != MenuState.Open);
        }
[ Test ] public void TestActionClick ( ) { AddStep ( " " , ( ) => clickItem ( 0 , 0 ) ) ; AddStep ( " " , ( ) => clickItem ( 1 , 0 ) ) ; AddAssert ( " " , ( ) => menus . GetSubMenu ( 1 ) ? . State != MenuState . Open ) ; }
Tests if clicking on an item that has no sub-menu causes the menu to close.
Tests if clicking on an item that has no sub - menu causes the menu to close .