osu.Framework.Tests/Visual/UserInterface/TestCaseNestedMenus.cs
/// <summary>
/// Tests whether click on <see cref="Menu.DrawableMenuItem"/>s causes sub-menus to instantly appear.
/// </summary>
Tests whether click on s causes sub-menus to instantly appear.
Tests whether click on s causes sub - menus to instantly appear .
[Test]
        public void TestInstantOpen()
        {
            AddStep("Click item", () => clickItem(0, 1));
            AddAssert("Check open", () => menus.GetSubMenu(1).State == MenuState.Open);
            AddStep("Click item", () => clickItem(1, 0));
            AddAssert("Check open", () => menus.GetSubMenu(2).State == MenuState.Open);
        }
[ Test ] public void TestInstantOpen ( ) { AddStep ( " " , ( ) => clickItem ( 0 , 1 ) ) ; AddAssert ( " " , ( ) => menus . GetSubMenu ( 1 ) . State == MenuState . Open ) ; AddStep ( " " , ( ) => clickItem ( 1 , 0 ) ) ; AddAssert ( " " , ( ) => menus . GetSubMenu ( 2 ) . State == MenuState . Open ) ; }
Tests whether click on s causes sub-menus to instantly appear.
Tests whether click on s causes sub - menus to instantly appear .