public void EntryAtOnIndexOutOfRangeReturnsNull() { CPV v = new CPV(new object[] { 4, 5, 6 }); IMapEntry me = v.entryAt(5); Expect(me, Null); }
public void EntryAtOnNonNumericReturnsNull() { CPV v = new CPV(new object[] { 4, 5, 6 }); IMapEntry me = v.entryAt("a"); Expect(me, Null); }
public void EntryAtOnIndexInRangeReturnsEntry() { CPV v = new CPV(new object[] { 4, 5, 6 }); IMapEntry me = v.entryAt(1); Expect(me.key(), EqualTo(1)); Expect(me.val(), EqualTo(5)); }
public void ValAtOnIndexOutOfRangeReturnsDefault() { CPV v = new CPV(new object[] { 4, 5, 6 }); IMapEntry me = v.entryAt(5); object val1 = v.valAt(4); object val2 = v.valAt(4, "abc"); Expect(val1, Null); Expect(val2, EqualTo("abc")); }
public void EntryAtOnIndexInRangeReturnsEntry() { CPV v = new CPV(new object[] { 4, 5, 6 }); IMapEntry me = v.entryAt(1); Expect(me.key(), EqualTo(1)); Expect(me.val(),EqualTo(5)); }