public void Disable_Should_disable_created_entity()
        {
            using (EntityCommandRecorder recorder = new EntityCommandRecorder(1024))
                using (World world = new World())
                {
                    EntityRecord record = recorder.CreateEntity();
                    record.Disable();

                    recorder.Execute(world);

                    Check.That(world.GetAllEntities().Single().IsEnabled()).IsFalse();
                }
        }
        public void Disable_Should_disable_created_entity()
        {
            using EntityCommandRecorder recorder = new(1024);
            using World world = new();

            EntityRecord record = recorder.CreateEntity(world);

            record.Disable();

            recorder.Execute();

            Check.That(world.Single().IsEnabled()).IsFalse();
        }
        public void DisableT_Should_disable_component_of_type_T_on_created_entity()
        {
            using EntityCommandRecorder recorder = new(1024);
            using World world = new();

            EntityRecord record = recorder.CreateEntity(world);

            record.Set(true);
            record.Disable <bool>();

            recorder.Execute();

            Check.That(world.Single().IsEnabled <bool>()).IsFalse();
        }
        public void Enable_Should_enable_created_entity()
        {
            using EntityCommandRecorder recorder = new EntityCommandRecorder(1024);
            using World world = new World();

            EntityRecord record = recorder.CreateEntity();

            record.Disable();
            record.Enable();

            recorder.Execute(world);

            Check.That(world.GetAllEntities().Single().IsEnabled()).IsTrue();
        }
        public void Disable_Should_disable_recorded_entity()
        {
            using EntityCommandRecorder recorder = new EntityCommandRecorder(1024);
            using World world = new World();

            Entity entity = world.CreateEntity();

            EntityRecord record = recorder.Record(entity);

            record.Disable();

            recorder.Execute(world);

            Check.That(entity.IsEnabled()).IsFalse();
        }
        public void EnableT_Should_enable_component_of_type_T_on_created_entity()
        {
            using (EntityCommandRecorder recorder = new EntityCommandRecorder(1024))
                using (World world = new World())
                {
                    EntityRecord record = recorder.CreateEntity();
                    record.Set(true);
                    record.Disable <bool>();
                    record.Enable <bool>();

                    recorder.Execute(world);

                    Check.That(world.GetAllEntities().Single().IsEnabled()).IsTrue();
                }
        }
        public void DisableT_Should_disable_component_of_type_T_on_recorded_entity()
        {
            using (EntityCommandRecorder recorder = new EntityCommandRecorder(1024))
                using (World world = new World())
                {
                    Entity entity = world.CreateEntity();
                    entity.Set(true);

                    EntityRecord record = recorder.Record(entity);
                    record.Disable <bool>();

                    recorder.Execute(world);

                    Check.That(entity.IsEnabled <bool>()).IsFalse();
                }
        }