public void Migrate_From1ToMigrationThatThrows_RollsbackTo1()
{
migrator.Migrate(store, new FakeAssembly(typeof(Migration1)));
WaitForIndexing();
try
{
migrator.Migrate(store, new FakeAssembly(typeof(MigrationThatThrows)));
}
catch
{
}
WaitForIndexing();
Assert.NotNull(store.DatabaseCommands.GetIndex("BooksByTitle"));
Assert.NotNull(store.DatabaseCommands.Get("migrationinfos/1"));
}