Exemple #1
0
 public void AutoIncTest()
 {
     CommandAction(command => {
         command.CommandText = "Select * from Orders";
         using (var reader = command.ExecuteReader()) {
             var expected = VfpDataReaderGetSchemaTableExpected.GetAutoInc();
             var actual   = reader.GetSchemaTable();
             //DataTableHelper.WriteDataTableCode("AutoInc", actual);
             DataTableHelper.AssertDataTablesAreEqual(expected, actual);
         }
     });
 }
        public void NoAutoIncTest()
        {
            this.fixture.ExecuteCommand(command => {
                command.CommandText = "Select * from Customers";

                using (var reader = command.ExecuteReader()) {
                    var expected = VfpDataReaderGetSchemaTableExpected.GetNoAutoInc();
                    var actual   = reader.GetSchemaTable();
                    //DataTableHelper.WriteDataTableCode("NoAutoInc", actual);
                    DataTableHelper.AssertDataTablesAreEqual(expected, actual);
                }
            });
        }