4 using System.Collections;
7 namespace MonoTests.System.Collections {
10 public class DictionaryEntryTest : Assertion {
14 DictionaryEntry d = new DictionaryEntry (1, "something");
16 AssertEquals ("#01", d.Key, 1);
17 AssertEquals ("#02", d.Value, "something");
22 DictionaryEntry d = new DictionaryEntry (1, "something");
24 AssertEquals ("#03", d.Key, 77.77);
28 public void Value () {
29 DictionaryEntry d = new DictionaryEntry (1, "something");
31 AssertEquals ("#04", d.Value, 'p');
36 [ExpectedException (typeof (ArgumentNullException))]
38 public void NullKeyCtor ()
40 DictionaryEntry d = new DictionaryEntry (null, "bar");
45 [ExpectedException (typeof (ArgumentNullException))]
47 public void NullKeySetter ()
49 DictionaryEntry d = new DictionaryEntry ("foo", "bar");