MouseMessageTests ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  DeltaEngine.Input.Tests MouseMessageTests

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

public class MouseMessageTests

The MouseMessageTests type exposes the following members.

Constructors

  NameDescription
Public methodMouseMessageTests
Initializes a new instance of the MouseMessageTests class
Top
Methods

  NameDescription
Public methodCreateMouseMessage
Public methodVerifyMouseMessagePropertiesAreSet
Top
Examples

[Test]
public void VerifyMouseMessagePropertiesAreSet()
{
    Assert.AreEqual(Vector2D.Half, mouseMessage.Position);
    Assert.AreEqual(0, mouseMessage.ScrollWheel);
    Assert.AreEqual(new[] { MouseButton.Left }, mouseMessage.PressedButtons);
}
See Also