//@TODO: Test class based components (Currently doesn't work) //@TODO: Test number of created / destroyed chunk counts to be what is expected (for perf) //@TODO: Handle chunk component versions. It seems likely that they can currently go out of sync between two worlds so systems might not pick up a change. (Currently doesn't work) //@TODO: Test for blob data (Manually tested) //@TODO: Test that Copy&Replace doesn't modify, add or remove system state components. But also don't change chunk layout. (Currently doesn't work) unsafe void CreateTestData(out Entity entity, out Entity metaEntity, int value, int componentChunkValue) { entity = SrcEntityManager.CreateEntity(); SrcEntityManager.AddComponentData(entity, new EcsTestData(value)); SrcEntityManager.AddSharedComponentData(entity, new EcsTestSharedComp(6)); SrcEntityManager.AddChunkComponentData(SrcEntityManager.UniversalQuery, new EcsTestData2(7)); metaEntity = SrcEntityManager.GetChunk(entity).m_Chunk->metaChunkEntity; Assert.AreEqual(7, SrcEntityManager.GetComponentData <EcsTestData2>(metaEntity).value0); }