public void GetLatestVersionNoMigrations() { var locator = new MigrationLocator(); locator.LatestVersion().Should().BeEquivalentTo( MigrationVersion.Default); }
public void GetLatestVersionWithMigrations() { var locator = new MigrationLocator(); locator.LookForMigrationsInAssembly(Assembly.GetExecutingAssembly()); locator.LatestVersion().Should().BeEquivalentTo( new MigrationVersion(new DateTime(2019, 7, 18, 16, 38, 00), "TestMigration")); }