Skip to content
This repository has been archived by the owner on May 20, 2021. It is now read-only.

Commit

Permalink
Remove tests no longer needed so build works
Browse files Browse the repository at this point in the history
  • Loading branch information
louisfischer committed Jun 11, 2017
1 parent eb3193a commit 07843ed
Showing 1 changed file with 1 addition and 38 deletions.
Expand Up @@ -25,44 +25,7 @@ public RemoteMigrationsFacts(ITestOutputHelper logHelper)
_mockLogger = new MockLogger(logHelper);
_migrator = new EfMigrator(SqlServerFactConstants.DdlPath, SqlServerFactConstants.ConfigName, SqlServerFactConstants.AppConfig,
SqlServerFactConstants.InstanceConnectionString, SqlServerFactConstants.ConnectionProvider, _mockLogger, false);
}

[Fact]
public void When_no_remote_migrations_current_migration_should_return_not_empty_or_null()
{
var migrations = _migrator.GetCurrentMigration();
migrations.Should().NotBeNullOrEmpty();
}

[Fact]
public void When_single_remote_migration_current_migration_should_return_single_migration()
{
var singleMigration = _migrator.GetLocalMigrations().First();

_migrator.MigrateTo(singleMigration);

var migrations = _migrator.GetCurrentMigration();
migrations.Should().Be(singleMigration);
}

[Fact]
public void Remote_migrations_should_be_in_descending_order()
{
var lastGoodMigration = _migrator.GetLocalMigrations().Skip(1).First();
_migrator.MigrateTo(lastGoodMigration);

// Act
var migrations = _migrator.GetRemoteMigrations()
.ToList();

foreach (var migration in migrations)
{
_logHelper.WriteLine(migration);
}

// Assert
migrations.Should().BeInDescendingOrder();
}
}

public void Dispose()
{
Expand Down

0 comments on commit 07843ed

Please sign in to comment.