Beispiel #1
0
        public void TestInsert_1()
        {
            NcByteCollection instance = new NcByteCollection();

            byte[] initial  = NcTestUtils.RandomBytes(5 * 1024);
            byte[] inserted = new byte[] { 127 };
            instance.AddRange((IEnumerable <byte>)initial);
            instance.Insert(5120, inserted[0]);

            Assert.IsTrue(instance.SequenceEqual(initial.Take(5120).Concat(inserted).Concat(initial.Skip(5120))));
        }