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)); }
public void MoveLeft() { GameObject obj = new GameObject(); obj.MoveLeft(); Assert.That(obj.Velocity, Is.EqualTo(-Vector2.UnitX)); }