Files
linux-packaging-mono/mcs/class/System.Windows.Forms/Test/System.Windows.Forms/KeyEventArgsTest.cs
Xamarin Public Jenkins 6992685b86 Imported Upstream version 4.2.0.179
Former-commit-id: 0a113cb3a6feb7873f632839b1307cc6033cd595
2015-11-10 14:54:39 +00: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");
}
}
}