KeyboardMessagesTests ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  DeltaEngine.Input.Tests KeyboardMessagesTests

Namespace: DeltaEngine.Input.Tests
Assembly: DeltaEngine.Input.Tests (in DeltaEngine.Input.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public class KeyboardMessagesTests

The KeyboardMessagesTests type exposes the following members.

Constructors

  NameDescription
Public methodKeyboardMessagesTests
Initializes a new instance of the KeyboardMessagesTests class
Top
Methods

  NameDescription
Public methodCanCreateKeyboardMessageWithoutParameter
Public methodCreateKeyboardMessageWithParameter
Public methodPressedKeyShouldBeEnter
Top
Examples

[Test]
public void CanCreateKeyboardMessageWithoutParameter()
{
    keyboardMessage = new KeyboardMessage();
    Assert.NotNull(keyboardMessage);
}
[Test]
public void PressedKeyShouldBeEnter()
{
    Assert.AreEqual(new[] { Key.Enter }, keyboardMessage.PressedKeys);
}
See Also