public void TestGetValues_DBNullToNull()
        {
            var record = new FakeDataRecord(new object[]
            {
                0, DateTime.UnixEpoch, DBNull.Value, 3.14159, 3.14159m, "A String"
            });
            var values = record.GetValues(replaceDBNulls: true);

            Assert.AreEqual(6, values.Length);
            Assert.AreEqual(null, values[2]);
        }
        public void TestGetValues_LargerArray_DBNullToNull()
        {
            var record = new FakeDataRecord(new object[]
            {
                0, DateTime.UnixEpoch, DBNull.Value, 3.14159, 3.14159m, "A String"
            });
            var values = new object[10];
            int length = record.GetValues(values, replaceDBNulls: true);

            Assert.AreEqual(6, length);
            var expected = new object[]
            {
                0, DateTime.UnixEpoch, null, 3.14159, 3.14159m, "A String", null, null, null, null
            };

            CollectionAssert.AreEqual(expected, values);
        }