예제 #1
0
파일: Tests.cs 프로젝트: DantesFonCake/Game
        public void Test_CorrectlyAttacks()
        {
            var enemy1        = new TestEntity(1, 0);
            var initialHealth = enemy1.Health;

            level.PlaceObject(enemy1);
            ai.TryScheduleAttack(level, testEnemy, new[] { enemy1.Position });
            while (testEnemy.Scheduler.Commit())
            {
                ;
            }
            Assert.IsTrue(enemy1.Health < initialHealth);
        }