示例#1
0
        public void IndexSchemaProviderTests_GetSchemaTest()
        {
            using (var connection = GetConnection()) {
                var actual   = connection.GetSchema(VfpConnection.SchemaNames.Indexes);
                var expected = IndexSchemaProviderExpected.GetSchema();

                //DataTableHelper.WriteDataTableCode("Schema", actual);
                DataTableHelper.AssertDataTablesAreEqual(expected, actual);
            }
        }
示例#2
0
        public void IndexSchemaProviderTests_GetSchemaWithTableNameAndFieldNameTest()
        {
            using (var connection = GetConnection()) {
                var actual   = connection.GetSchema(VfpConnection.SchemaNames.Indexes, new string[] { "categories", "categoryid" });
                var expected = IndexSchemaProviderExpected.GetSchemaWithTableNameAndFieldName();

                //DataTableHelper.WriteDataTableCode("SchemaWithTableNameAndFieldName", actual);
                DataTableHelper.AssertDataTablesAreEqual(expected, actual);
            }
        }
示例#3
0
        public void IndexSchemaProviderTests_GetSchemaWithIndexNameTest()
        {
            using (var connection = this.fixture.CreateConnection()) {
                var actual   = connection.GetSchema(VfpConnection.SchemaNames.Indexes, new string[] { null, "categoryid" });
                var expected = IndexSchemaProviderExpected.GetSchemaWithIndexName();

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