4 // Rolf Bjarne Kvinge (RKvinge@novell.com)
6 // (C) 2007 Novell, Inc. (http://www.novell.com)
10 using System.Windows.Forms;
12 using System.Reflection;
13 using System.ComponentModel;
14 using NUnit.Framework;
15 using System.Threading;
17 namespace MonoTests.System.Windows.Forms
21 public class KeyEventArgsTest : TestHelper
25 public void SuppressKeyPressTest ()
27 KeyEventArgs kea = new KeyEventArgs (Keys.L);
29 Assert.IsFalse (kea.SuppressKeyPress, "#01");
30 Assert.IsFalse (kea.Handled, "#02");
32 kea.SuppressKeyPress = true;
34 Assert.IsTrue (kea.SuppressKeyPress, "#03");
35 Assert.IsTrue (kea.Handled, "#04");
37 kea.SuppressKeyPress = false;
39 Assert.IsFalse (kea.SuppressKeyPress, "#05");
40 Assert.IsFalse (kea.Handled, "#06");