Beispiel #1
0
        public void get_value_or_null_returns_null_if_index_is_invalid()
        {
            var record = new ConcreteRecordBase();

            Assert.Null(record.GetValueOrNull(-1));
            Assert.Null(record.GetValueOrNull(1));
            Assert.Null(record.GetValueOrNull(10));
        }
Beispiel #2
0
        public void get_value_or_null_returns_value_if_index_is_valid()
        {
            var record = new ConcreteRecordBase("value1", "value2", "value3", "value4");

            Assert.Equal("value1", record.GetValueOrNull(0));
            Assert.Equal("value2", record.GetValueOrNull(1));
            Assert.Equal("value3", record.GetValueOrNull(2));
            Assert.Equal("value4", record.GetValueOrNull(3));
        }
Beispiel #3
0
 public void get_value_or_null_returns_value_if_index_is_valid()
 {
     var record = new ConcreteRecordBase("value1", "value2", "value3", "value4");
     Assert.Equal("value1", record.GetValueOrNull(0));
     Assert.Equal("value2", record.GetValueOrNull(1));
     Assert.Equal("value3", record.GetValueOrNull(2));
     Assert.Equal("value4", record.GetValueOrNull(3));
 }
Beispiel #4
0
 public void get_value_or_null_returns_null_if_index_is_invalid()
 {
     var record = new ConcreteRecordBase();
     Assert.Null(record.GetValueOrNull(-1));
     Assert.Null(record.GetValueOrNull(1));
     Assert.Null(record.GetValueOrNull(10));
 }