public void NonGenericNoExceptionOnKeyOrValueOfWrongType()
        {
            IReversibleDictionary rdict = (IReversibleDictionary)this.createAndInit();

            Assert.DoesNotThrow(() => rdict.Remove(new CustomPrivateType()));
            Assert.DoesNotThrow(() => { bool result = rdict.Contains(new CustomPrivateType()); });
        }
 private static void CheckRemovedNonGeneric(
     IReversibleDictionary rdict,
     DictionaryEntry entry,
     int initialCount)
 {
     Assert.IsFalse(rdict.Contains(entry.Key));
     Assert.IsFalse(rdict.Reverse.Contains(entry.Value));
     Assert.AreEqual(rdict.Reverse.Count, rdict.Count);
     Assert.AreEqual(initialCount, rdict.Count);
 }