public void DeferredListMustExistInJobData() { var list = new NativeList <int>(Allocator.TempJob); var job = new ParallelForWithoutList(); Assert.Throws <InvalidOperationException>(() => job.Schedule(list, 64)); list.Dispose(); }
public void DeferredListCantBeDeletedWhileJobIsRunning() { var list = new NativeList <int> (Allocator.TempJob); var job = new ParallelForWithoutList(); Assert.Throws <InvalidOperationException>(() => job.Schedule(list, 64)); list.Dispose(); }