示例#1
0
        public void remove_at_throws_if_index_is_invalid()
        {
            var record = new ConcreteRecordBase();

            Assert.Throws <ArgumentOutOfRangeException>(() => record.RemoveAt(-1));
            Assert.Throws <ArgumentOutOfRangeException>(() => record.RemoveAt(0));
        }
示例#2
0
        public void remove_at_throws_if_read_only()
        {
            var record = new ConcreteRecordBase(true, "one");

            Assert.Throws <NotSupportedException>(() => record.RemoveAt(0));
        }
示例#3
0
 public void remove_at_throws_if_read_only()
 {
     var record = new ConcreteRecordBase(true, "one");
     Assert.Throws<NotSupportedException>(() => record.RemoveAt(0));
 }
示例#4
0
 public void remove_at_throws_if_index_is_invalid()
 {
     var record = new ConcreteRecordBase();
     Assert.Throws<ArgumentOutOfRangeException>(() => record.RemoveAt(-1));
     Assert.Throws<ArgumentOutOfRangeException>(() => record.RemoveAt(0));
 }