Пример #1
0
        public void FreeTableSchemaTests_GetIndexSchemaTest()
        {
            using (var connection = this.fixture.CreateConnection()) {
                var actual   = connection.GetSchema(VfpConnection.SchemaNames.Indexes);
                var expected = FreeTableSchemaExpected.GetIndexSchema();

                //DataTableHelper.WriteDataTableCode("IndexSchema", actual);
                DataTableHelper.AssertDataTablesAreEqual(expected, actual);
            }
        }
Пример #2
0
        public void FreeTableSchemaTests_GetProcedureParameterSchemaTest()
        {
            using (var connection = GetConnection()) {
                var actual   = connection.GetSchema(VfpConnection.SchemaNames.ProcedureParameters);
                var expected = FreeTableSchemaExpected.GetProcedureParameterSchema();

                //DataTableHelper.WriteDataTableCode("ProcedureParameterSchema", actual);
                DataTableHelper.AssertDataTablesAreEqual(expected, actual);
            }
        }
Пример #3
0
        public void FreeTableSchemaTests_GetCandidateKeySchemaWithTableNameTest()
        {
            using (var connection = this.fixture.CreateConnection()) {
                var actual   = connection.GetSchema(VfpConnection.SchemaNames.CandidateKeys, new[] { "sample_c1" });
                var expected = FreeTableSchemaExpected.GetCandidateKeySchemaWithTableName();

                //DataTableHelper.WriteDataTableCode("CandidateKeySchemaWithTableName", actual);
                DataTableHelper.AssertDataTablesAreEqual(expected, actual);
            }
        }
Пример #4
0
        public void FreeTableSchemaTests_GetCandidateKeySchemaWithTableNameAndNoTablesWithMultipleCandidateKeysTest()
        {
            using (var connection = GetConnection()) {
                var actual   = connection.GetSchema(VfpConnection.SchemaNames.CandidateKeys, new[] { "sample_c1", "true" });
                var expected = FreeTableSchemaExpected.GetCandidateKeySchemaWithTableNameAndNoTablesWithMultipleCandidateKeys();

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