4 using System.Collections;
7 namespace MonoTests.System.Collections {
10 public class DictionaryEntryTest {
14 DictionaryEntry d = new DictionaryEntry (1, "something");
16 Assert.AreEqual (1, d.Key, "#01");
17 Assert.AreEqual ("something", d.Value, "#02");
22 DictionaryEntry d = new DictionaryEntry (1, "something");
24 Assert.AreEqual (77.77, d.Key, "#03");
28 public void Value () {
29 DictionaryEntry d = new DictionaryEntry (1, "something");
31 Assert.AreEqual ('p', d.Value, "#04");
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");