예제 #1
0
 public void UnicodeKeyDownTest()
 {
     sender.UnicodeKeyDown('A');
     sender.UnicodeKeyUp('A');
     Assert.AreEqual(keyboardEvents[0].Item1, LowLevelKeyboardHook.Event.WM_KEYDOWN);
     Assert.AreEqual(keyboardEvents[0].Item2.vkCode, 0xE7U);
     Assert.AreEqual(keyboardEvents[0].Item2.scanCode, 'A');
     Assert.IsFalse(keyboardEvents[0].Item2.flags.HasFlag(LowLevelKeyboardHook.FLAGS.LLKHF_EXTENDED));
 }