Ejemplo n.º 1
0
        public void IndexOfKeyMissing()
        {               //****************************************
            var MyRecords = new ObservableSortedList <int, int>();

            //****************************************

            MyRecords[10] = 42;

            //****************************************

            Assert.AreEqual(-1, MyRecords.IndexOfKey(11));
        }
Ejemplo n.º 2
0
        public void IndexOfKeyCollideMissing()
        {               //****************************************
            var MyRecords = new ObservableSortedList <CollideStruct, int>();

            //****************************************

            MyRecords[new CollideStruct(10)] = 42;

            //****************************************

            Assert.AreEqual(-1, MyRecords.IndexOfKey(new CollideStruct(11)));
        }