private IDictionary_NonGeneric_Add_ValueOfWrongType ( int count ) : void | ||
count | int | |
Résultat | void |
public void IDictionary_NonGeneric_Add_ValueOfWrongType(int count)
{
if (!IsReadOnly)
{
IDictionary dictionary = new SortedList<string, string>();
object missingKey = GetNewKey(dictionary);
Assert.Throws<ArgumentException>(() => dictionary.Add(missingKey, 324));
Assert.Empty(dictionary);
}
}