osu.Framework.Tests/Visual/UserInterface/TestCaseNestedMenus.cs
/// <summary>
/// Tests if the hover state on <see cref="Menu.DrawableMenuItem"/>s is valid.
/// </summary>
Tests if the hover state on s is valid.
Tests if the hover state on s is valid .
[Test]
        public void TestHoverState()
        {
            AddAssert("Check submenu closed", () => menus.GetSubMenu(1)?.State != MenuState.Open);
            AddStep("Hover item", () => InputManager.MoveMouseTo(menus.GetMenuItems()[0]));
            AddAssert("Check item hovered", () => menus.GetMenuItems()[0].IsHovered);
        }
[ Test ] public void TestHoverState ( ) { AddAssert ( " " , ( ) => menus . GetSubMenu ( 1 ) ? . State != MenuState . Open ) ; AddStep ( " " , ( ) => InputManager . MoveMouseTo ( menus . GetMenuItems ( ) [ 0 ] ) ) ; AddAssert ( " " , ( ) => menus . GetMenuItems ( ) [ 0 ] . IsHovered ) ; }
Tests if the hover state on s is valid.
Tests if the hover state on s is valid .