Example #1
0
        public void Test_CorrectlyMovesToPosition()
        {
            var targets = new[] { new Point(2, 2) };

            for (var i = 0; i < 2; i++)
            {
                ai.ScheduleTowards(level, testEnemy, targets);
                testEnemy.Scheduler.Commit();
            }
            Assert.AreEqual(targets[0], testEnemy.Position);
        }