public void DataRecordExtensions_Unit_Field1_NameIsNull()
        {
            String key = "Name";
            String value = "This is a test";
            IDictionary<String, Object> values = new Dictionary<String, Object>() {
                { key, value }
            };

            IDataRecord dataRecord = new MockDataRecord(values);
            String name = null;
            DataRecordExtensions.Field<String>(dataRecord, name);
        }
        public void DataRecordExtensions_Unit_Field1_Optimal()
        {
            String key = "Name";
            String value = "This is a test";
            IDictionary<String, Object> values = new Dictionary<String, Object>() {
                { key, value }
            };

            IDataRecord dataRecord = new MockDataRecord(values);
            String name = key;
            String actual = DataRecordExtensions.Field<String>(dataRecord, name);

            String expected = value;
            Assert.AreEqual(expected, actual);
        }
        public void DataRecordExtensions_Unit_Field2_TIsInvalid()
        {
            String key = "Name";
            String value = "This is a test";
            IDictionary<String, Object> values = new Dictionary<String, Object>() {
                { key, value }
            };

            IDataRecord dataRecord = new MockDataRecord(values);
            Int32 index = 0;
            DataRecordExtensions.Field<DateTime>(dataRecord, index);
        }
        public void DataRecordExtensions_Unit_Field2_IndexIsTooLarge()
        {
            String key = "Name";
            String value = "This is a test";
            IDictionary<String, Object> values = new Dictionary<String, Object>() {
                { key, value }
            };

            IDataRecord dataRecord = new MockDataRecord(values);
            Int32 index = values.Count;
            DataRecordExtensions.Field<String>(dataRecord, index);
        }