public void AvailableMigrations_returns_empty_for_invalid_versions( VersionedElementInfo element) { var migrations = element.AvailableMigrations(); migrations.Should().BeEmpty(); }
public void AvailableMigrations_returns_migration_for_previous_migratable_version(RootElement rootElement) { var previous = BattleScribeVersion.V2x01; var element = new VersionedElementInfo(rootElement, previous); var migrations = element.AvailableMigrations(); migrations.Should().HaveCountGreaterOrEqualTo(1, "because we're migrating from some previous version."); }