// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System.Windows.Forms;
using System.Windows.Forms.Automation;
using static Interop;
using static Interop.User32;

namespace System
{
    public static partial class TestAccessors
    {
        internal class KeyboardToolTipStateMachineTestAccessor : TestAccessor<KeyboardToolTipStateMachine>
        {
            public KeyboardToolTipStateMachineTestAccessor(KeyboardToolTipStateMachine instance)
                : base(instance) { }

            internal bool IsToolTracked(IKeyboardToolTip sender) => (bool)Dynamic.IsToolTracked(sender);
        }

        internal static KeyboardToolTipStateMachineTestAccessor TestAccessor(this KeyboardToolTipStateMachine instance)
            => new KeyboardToolTipStateMachineTestAccessor(instance);
    }
}
