Exemplo n.º 1
0
        public void AvailableMigrations_returns_empty_for_invalid_versions(
            VersionedElementInfo element)
        {
            var migrations = element.AvailableMigrations();

            migrations.Should().BeEmpty();
        }
Exemplo n.º 2
0
        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.");
        }