public void UnsafeSchemaMigrations_NoRunWhenInferred() { CreateMetadataTable(); var command = new UnsafeCountingCommand(); var runner = new SchemaMigrationRunner(store, new FakeSchemaDiffer(command)); runner.Run(); command.NumberOfTimesCalled.ShouldBe(0); }
public void UnsafeSchemaMigrations_RunsWhenProvided() { CreateMetadataTable(); var command = new UnsafeCountingCommand(); UseMigrations(new InlineMigration(1, command)); var runner = new SchemaMigrationRunner(store, new FakeSchemaDiffer()); runner.Run(); command.NumberOfTimesCalled.ShouldBe(1); }