public void ItWorks() { Database.Migrate(TestConfig.ConnectionString, Migrations.FromThisAssembly().Where(m => m.SequenceNumber < 2)); var tableNames = GetTableNames(); Assert.That(tableNames, Is.EqualTo(new[] { "MyFirstTable" })); }
public void ItWorks() { Database.Migrate(TestConfig.ConnectionString, Migrations.FromThisAssembly(), new Options(logAction: text => Console.WriteLine("LOG: {0}", text))); var tableNames = GetTableNames(); Assert.That(tableNames, Is.EqualTo(new[] { "MyFirstTable", "MySecondTable" })); }