public void TestRangedListAdd()
        {
            List <int> list = new List <int> {
                1, 2, 3, 4, 5, 6,
            };
            RangedList <int> ranged = new RangedList <int>(list, 2, 3);

            ranged.Add(100);
            Assert.AreEqual(7, list.Count);
            Assert.AreEqual(4, ranged.Count);
            Assert.AreEqual(3, ranged[0]);
            Assert.AreEqual(4, ranged[1]);
            Assert.AreEqual(5, ranged[2]);
            Assert.AreEqual(100, ranged[3]);
        }
        public void TestRangedListClear()
        {
            List <int> list = new List <int> {
                1, 2, 3, 4, 5, 6,
            };
            RangedList <int> ranged = new RangedList <int>(list, 2, 3);

            ranged.Clear();
            Assert.AreEqual(3, list.Count);
            Assert.AreEqual(0, ranged.Count);

            ranged.Add(100);
            Assert.AreEqual(4, list.Count);
            Assert.AreEqual(1, ranged.Count);
            Assert.AreEqual(100, list[2]);
            Assert.AreEqual(100, ranged[0]);
        }