public void ShouldReturnFalseForNonKeyDown() { var target = new Mock <IKeyDispatcherTarget>(); var dispatcher = new KeyDispatcher(target.Object); Assert.False(dispatcher.Dispatch(3, (IntPtr)0, (IntPtr)(0x01 << 31))); }
public void ShouldReturnFalseForModifierKeys(Keys key) { var target = new Mock <IKeyDispatcherTarget>(); var dispatcher = new KeyDispatcher(target.Object); Assert.False(dispatcher.Dispatch(3, (IntPtr)key, IntPtr.Zero)); }
public void ShouldReturnFalseForNonPreviewKey() { var target = new Mock <IKeyDispatcherTarget>(); var dispatcher = new KeyDispatcher(target.Object); Assert.False(dispatcher.Dispatch(0, IntPtr.Zero, IntPtr.Zero)); }