Beispiel #1
0
        public void MoveUpLeft()
        {
            GameObject obj = new GameObject();
            obj.MoveUp();
            obj.MoveLeft();

            Vector2 expected = -Vector2.UnitY + -Vector2.UnitX;
            //expected.Normalize();
            Assert.That(obj.Velocity, Is.EqualTo(expected));
        }
Beispiel #2
0
 public void MoveLeft()
 {
     GameObject obj = new GameObject();
     obj.MoveLeft();
     Assert.That(obj.Velocity, Is.EqualTo(-Vector2.UnitX));
 }