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

            Assert.AreEqual("a", data.GetOrAdd(1, "a"));
            Assert.AreEqual("a", data.GetOrAdd(1, "b"));
        }