예제 #1
0
 public void AddRange()
 {
     using (var growableBuffer = new GrowableBuffer <int>(Allocator.TempJob))
     {
         for (int i = 0; i < 9; ++i)
         {
             growableBuffer.Add(i);
         }
         using (var copiedList = new GrowableBuffer <int>(Allocator.Temp))
         {
             copiedList.AddRange(growableBuffer);
             CollectionAssert.AreEqual(growableBuffer.ToArray(), copiedList.ToArray());
         }
     }
 }