Ejemplo n.º 1
0
        public void On_empty_db_can_create_a_Migrations_table()
        {
            Connection.WithCleanDbConnection((c) =>
            {
                using (var tx = c.BeginTransaction())
                {
                    Migrator.CreateMigrationsTable(c, tx);
                    tx.Commit();
                }

                Assert.NotEmpty(c.Query <string>("SELECT Filename FROM Migrations"));
            });
        }