public void IndexOfMissingValue() { //**************************************** var MyRecords = new StringKeyDictionary <int>(); //**************************************** MyRecords["A"] = 42; //**************************************** Assert.AreEqual(-1, MyRecords.IndexOf(new KeyValuePair <string, int>("A", 30))); }