Inheritance Hierarchy
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
The RemoteInputMessagesTests type exposes the following members.
Constructors
Name | Description | |
---|---|---|
RemoteInputMessagesTests | Initializes a new instance of the RemoteInputMessagesTests class |
Methods
Name | Description | |
---|---|---|
CreateKeyboardMessage | ||
CreateTouchMessage |
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