Author: rolf
Date: 2007-05-25 07:44:42 -0400 (Fri, 25 May 2007)
New Revision: 77941
Added:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/KeyEventArgsTest.cs
Modified:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
Log:
* KeyEventArgsTest.cs: Added.
Modified:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
2007-05-25 11:43:05 UTC (rev 77940)
+++ trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ChangeLog
2007-05-25 11:44:42 UTC (rev 77941)
@@ -1,3 +1,7 @@
+2007-05-25 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
+
+ * KeyEventArgsTest.cs: Added.
+
2007-05-24 Andreia Gaita <[EMAIL PROTECTED]>
* NumericUpDownTest.cs: Added 1.1 and 2.0 tests.
Added:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/KeyEventArgsTest.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/KeyEventArgsTest.cs
2007-05-25 11:43:05 UTC (rev 77940)
+++
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/KeyEventArgsTest.cs
2007-05-25 11:44:42 UTC (rev 77941)
@@ -0,0 +1,45 @@
+//
+//
+// Author:
+// Rolf Bjarne Kvinge ([EMAIL PROTECTED])
+//
+// (C) 2007 Novell, Inc. (http://www.novell.com)
+//
+
+using System;
+using System.Windows.Forms;
+using System.Drawing;
+using System.Reflection;
+using System.ComponentModel;
+using NUnit.Framework;
+using System.Threading;
+
+namespace MonoTests.System.Windows.Forms
+{
+
+ [TestFixture]
+ public class KeyEventArgsTest
+ {
+#if NET_2_0
+ [Test]
+ public void SuppressKeyPressTest ()
+ {
+ KeyEventArgs kea = new KeyEventArgs (Keys.L);
+
+ Assert.IsFalse (kea.SuppressKeyPress, "#01");
+ Assert.IsFalse (kea.Handled, "#02");
+
+ kea.SuppressKeyPress = true;
+
+ Assert.IsTrue (kea.SuppressKeyPress, "#03");
+ Assert.IsTrue (kea.Handled, "#04");
+
+ kea.SuppressKeyPress = false;
+
+ Assert.IsFalse (kea.SuppressKeyPress, "#05");
+ Assert.IsFalse (kea.Handled, "#06");
+
+ }
+#endif
+ }
+}
Property changes on:
trunk/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/KeyEventArgsTest.cs
___________________________________________________________________
Name: svn:eol-style
+ native
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches