예제 #1
0
        public void OverwriteWith()
        {
            var dl = new DenseList <int> {
                1, 2
            };

            dl.OverwriteWith(new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8 }, 2, 5);
            Assert.AreEqual(
                new int[] { 2, 3, 4, 5, 6 },
                dl.ToArray()
                );
        }