示例#1
0
        public void TestIndexer()
        {
            BTreeDictionary <int, string> data = new BTreeDictionary <int, string>(Comparer, GetSample());
            BTreeDictionary <int, string> copy = new BTreeDictionary <int, string>(Comparer);

            copy.AddRange(data);
            Assert.AreEqual(copy.Count, data.Count);
            foreach (int key in data.Keys)
            {
                Assert.AreEqual(data[key], copy[key]);
            }
        }