Beispiel #1
0
        public void ProcedureColumnSchemaProviderTests_GetSchemaWithReferentialIntegrityTest()
        {
            using (var connection = this.fixture.CreateConnection()) {
                var actual   = connection.GetSchema(VfpConnection.SchemaNames.ProcedureColumns, new[] { null, "true" });
                var expected = ProcedureColumnSchemaProviderExpected.GetSchemaWithReferentialIntegrity();

                //DataTableHelper.WriteDataTableCode("SchemaWithReferentialIntegrity", actual);
                DataTableHelper.AssertDataTablesAreEqual(expected, actual);
            }
        }
Beispiel #2
0
        public void ProcedureColumnSchemaProviderTests_GetSchemaTest()
        {
            using (var connection = this.fixture.CreateConnection()) {
                var actual   = connection.GetSchema(VfpConnection.SchemaNames.ProcedureColumns);
                var expected = ProcedureColumnSchemaProviderExpected.GetSchema();

                //DataTableHelper.WriteDataTableCode("Schema", actual);
                DataTableHelper.AssertDataTablesAreEqual(expected, actual);
            }
        }
Beispiel #3
0
        public void ProcedureColumnSchemaProviderTests_GetSchemaWithProcedureNameTest()
        {
            using (var connection = GetConnection()) {
                var actual   = connection.GetSchema(VfpConnection.SchemaNames.ProcedureColumns, new[] { "custorderhist" });
                var expected = ProcedureColumnSchemaProviderExpected.GetSchemaWithProcedureName();

                //DataTableHelper.WriteDataTableCode("SchemaWithProcedureName", actual);
                DataTableHelper.AssertDataTablesAreEqual(expected, actual);
            }
        }