private void CompareForeignKeys(ForeignKey foreignKey, TableKeySchema tableKeySchema)
 {
     Assert.AreEqual(1, tableKeySchema.ForeignKeyMemberColumns.Count);
     Assert.AreEqual(foreignKey.FromColumn,
         tableKeySchema.ForeignKeyMemberColumns[0].Name);
     Assert.AreEqual(foreignKey.ToTable,
         tableKeySchema.PrimaryKeyTable.Name);
     Assert.AreEqual(1, tableKeySchema.PrimaryKeyMemberColumns.Count);
     Assert.AreEqual(foreignKey.ToColumn,
         tableKeySchema.PrimaryKeyMemberColumns[0].Name);
 }
 public TableSpec(String name, TableColumn[] columns, TableIndex[] indexes, ForeignKey[] fkeys)
 {
     Name = name;
     Columns = columns;
     Indexes = indexes;
     ForeignKeys = fkeys;
 }