Exemplo n.º 1
0
        public void GetNotExists_Fail()
        {
            var skipList = new ConcurrentSkipListMap <Int32, Int32>();

            AddItems_0_to_1000(skipList);

            Assert.IsFalse(skipList.TryGetValue(1234, out var value));
        }
Exemplo n.º 2
0
        public void GetAllItems_Success()
        {
            var skipList = new ConcurrentSkipListMap <Int32, Int32>();

            AddItems_0_to_1000(skipList);

            Int32 value;

            for (var i = 0; i < 1000; i++)
            {
                Assert.IsTrue(skipList.TryGetValue(i, out value));
                Assert.AreEqual(i + 1, value);
            }
        }