Exemple #1
0
 public void GetKeyInput_EnglishAlpha()
 {
     AssertGetKeyInput('a', 'a', ModifierKeys.None);
     AssertGetKeyInput('A', 'A', ModifierKeys.None);
     AssertGetKeyInput('A', 'A', ModifierKeys.Shift);
     AssertGetKeyInput(KeyInputUtil.CharWithShiftToKeyInput('a'), 'a', ModifierKeys.Shift);
     AssertGetKeyInput(KeyInputUtil.CharWithControlToKeyInput('a'), 'a', ModifierKeys.Control);
     AssertGetKeyInput(KeyInputUtil.CharWithControlToKeyInput('A'), 'A', ModifierKeys.Control);
     AssertGetKeyInput(KeyInputUtil.CharWithControlToKeyInput('A'), 'A', ModifierKeys.Control | ModifierKeys.Shift);
 }