public void ExtractHotKeyWithUnderScore()
        {
            int    index;
            string hotkey;
            string key;
            bool   shift;
            bool   alt;
            bool   cmd;

            MenuItemHotKey.Parse(
                "Window/Analysis/Profiler _g", out index, out hotkey, out key, out shift,
                out alt, out cmd);
            Assert.IsTrue(hotkey == "g");
            Assert.IsTrue(key == "g");
        }
        public void ExtractHotkeyWithSpecialKeyboardSymbols()
        {
            int    index;
            string hotkey;
            string key;
            bool   shift;
            bool   alt;
            bool   cmd;

            MenuItemHotKey.Parse(
                "Window/Analysis/Profiler #LEFT", out index, out hotkey, out key, out shift,
                out alt, out cmd);
            Assert.IsTrue(hotkey == "#LEFT");
            Assert.IsTrue(shift);
            Assert.IsTrue(key == "LEFT");
        }
        public void ExtractHotKey()
        {
            int    index;
            string hotkey;
            string key;
            bool   shift;
            bool   alt;
            bool   cmd;

            MenuItemHotKey.Parse(
                "Window/Analysis/Profiler %&7", out index, out hotkey, out key, out shift,
                out alt, out cmd);
            Assert.IsTrue(hotkey == "%&7");
            Assert.IsTrue(cmd & alt);
            Assert.IsTrue(key == "7");
        }
        public void CheckEmptyHotKey()
        {
            int    index;
            string hotkey;
            string key;
            bool   shift;
            bool   alt;
            bool   cmd;

            MenuItemHotKey.Parse(
                "Window/Analysis/Profiler Some Some", out index, out hotkey, out key, out shift,
                out alt, out cmd);
            Assert.IsTrue(hotkey == string.Empty);
            Assert.IsFalse(cmd);
            Assert.IsFalse(shift);
            Assert.IsFalse(alt);
        }