Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

46 lines
873 B
C#

//
//
// Author:
// Rolf Bjarne Kvinge (RKvinge@novell.com)
//
// (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 : TestHelper
{
#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
}
}