public void EntryAtOutOfRangeHighReturnsNull() { MapEntry me = new MapEntry(1, "abc"); IMapEntry me1 = me.entryAt(4); Expect(me1, Null); }
public void EntryAtOnExistingKeyWorks() { MapEntry me = new MapEntry(1, "abc"); IMapEntry me1 = me.entryAt(0); IMapEntry me2 = me.entryAt(1); Expect(me1.key(), EqualTo(0)); Expect(me1.val(), EqualTo(1)); Expect(me2.key(), EqualTo(1)); Expect(me2.val(), EqualTo("abc")); }