Jo Shields 3c1f479b9d Imported Upstream version 4.0.0~alpha1
Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
2015-04-07 09:35:12 +01:00

44 lines
854 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
{
[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");
}
}
}