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); }