public void GapBuffer_ToArrayTest() { GapBuffer <int> buf = CreateTestGapBuffer(); int[] array = buf.ToArray(); Assert.AreEqual(buf.Count, array.Length); for (int i = 0; i < array.Length; i++) { Assert.AreEqual(buf[i], array[i]); } }