MouseDeviceCounterTests ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  DeltaEngine.Input.Windows.Tests MouseDeviceCounterTests

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

public class MouseDeviceCounterTests

The MouseDeviceCounterTests type exposes the following members.

Constructors

  NameDescription
Public methodMouseDeviceCounterTests
Initializes a new instance of the MouseDeviceCounterTests class
Top
Methods

  NameDescription
Public methodDeviceCounterInMouseProperty
Public methodGetNumberOfAvailableMice
Top
Examples

[Test]
public void GetNumberOfAvailableMice()
{
    Assert.DoesNotThrow(delegate
    {
        var counter = new MouseDeviceCounter();
        Assert.Greater(counter.GetNumberOfAvailableMice(), 0);
    });
}
[Test]
public void DeviceCounterInMouseProperty()
{
    var windowsMouse = GetMouse();
    Assert.IsTrue(windowsMouse.IsAvailable);
}
See Also