public void Dictionary_Generic_RemoveKey_DefaultKeyContainedInDictionary(int count) { if (DefaultValueAllowed) { SegmentedDictionary <TKey, TValue> dictionary = (SegmentedDictionary <TKey, TValue>)(GenericIDictionaryFactory(count)); TKey missingKey = default(TKey); TValue value; dictionary.TryAdd(missingKey, default(TValue)); Assert.True(dictionary.Remove(missingKey, out value)); } }