public void IndexOfKeyMissing() { //**************************************** var MyRecords = new ObservableSortedList <int, int>(); //**************************************** MyRecords[10] = 42; //**************************************** Assert.AreEqual(-1, MyRecords.IndexOfKey(11)); }
public void IndexOfKeyCollideMissing() { //**************************************** var MyRecords = new ObservableSortedList <CollideStruct, int>(); //**************************************** MyRecords[new CollideStruct(10)] = 42; //**************************************** Assert.AreEqual(-1, MyRecords.IndexOfKey(new CollideStruct(11))); }