Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (20 sloc) 520 Bytes
using DeltaEngine.Datatypes;
using NUnit.Framework;
namespace DeltaEngine.Input.Tests
{
public class TouchMessageTests
{
[SetUp]
public void CreateTouchMessage()
{
touchMessage = new TouchMessage(new[] { Vector2D.Half }, new[] { true });
}
private TouchMessage touchMessage;
[Test]
public void VerifyTouchMessagePropertiesAreSet()
{
Assert.AreEqual(new []{Vector2D.Half}, touchMessage.Positions);
Assert.AreEqual(new []{true}, touchMessage.PressedTouches);
}
}
}