public void GapBuffer_IndexOfTest()
        {
            GapBuffer <int> buf = CreateTestGapBuffer();

            Assert.AreEqual(0, buf.IndexOf(100));
            Assert.AreEqual(15, buf.IndexOf(115));
            Assert.AreEqual(17, buf.IndexOf(116));
            Assert.AreEqual(25, buf.IndexOf(124));
            Assert.AreEqual(-1, buf.IndexOf(125));
            Assert.AreEqual(16, buf.IndexOf(999));

            Assert.IsTrue(buf.Contains(100));
            Assert.IsTrue(buf.Contains(999));
            Assert.IsFalse(buf.Contains(0));
        }