public void TemporaryBuffer_Insert() { using var buffer = new TemporaryBuffer <int>(1) { 100, 200, 300 }; buffer.Insert(2, 700); Assert.True(buffer.EndsWith(new [] { 700, 300 })); }