public void ToRecordset_PocoList_FieldsAreEqual()
        {
            var input    = new List <TestPoco>();
            var expected = new TestPoco {
                BoolValue = true, Int32Value = 1, StringValue = "foo"
            };

            input.Add(expected);

            var actual = input.ToRecordset();

            Assert.Equal(expected.BoolValue, (bool)actual.Fields["boolvalue"].Value);
            Assert.Equal(expected.Int32Value, (int)actual.Fields["int32value"].Value);
            Assert.Equal(expected.StringValue, (string)actual.Fields["stringvalue"].Value);
        }
        public void ToRecordset_PocoListWith3Items_AllItemsAreConverted()
        {
            var input = new List <TestPoco>();

            for (int i = 0; i < 3; i++)
            {
                var item = new TestPoco
                {
                    BoolValue   = true,
                    Int32Value  = i,
                    StringValue = "foo"
                };

                input.Add(item);
            }

            var rs = input.ToRecordset();

            Assert.Equal(3, rs.RecordCount);
        }