RemoteInputMessagesTests ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  DeltaEngine.Input.Tests RemoteInputMessagesTests

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

public class RemoteInputMessagesTests

The RemoteInputMessagesTests type exposes the following members.

Constructors

  NameDescription
Public methodRemoteInputMessagesTests
Initializes a new instance of the RemoteInputMessagesTests class
Top
Methods

  NameDescription
Public methodCreateKeyboardMessage
Public methodCreateTouchMessage
Top
Examples

[Test]
public void CreateKeyboardMessage()
{
    var emptyMessage = new KeyboardMessage();
    Assert.IsNull(emptyMessage.PressedKeys);
    var message = new KeyboardMessage(new Key[0]);
    Assert.AreEqual(0, message.PressedKeys.Length);
}
[Test]
public void CreateTouchMessage()
{
    var message = new TouchMessage(new Vector2D[0], new bool[0]);
    Assert.AreEqual(0, message.Positions.Length);
    Assert.AreEqual(0, message.PressedTouches.Length);
}
See Also