Ejemplo n.º 1
0
        public void IsMigrationNeeded_Latest_ReturnsFalse()
        {
            string path = null;

            try
            {
                path = TempOxesFiles.MinimalValidFile(null);
                Assert.IsFalse(Migrator.IsMigrationNeeded(path));
            }
            finally
            {
                if (!String.IsNullOrEmpty(path))
                {
                    File.Delete(path);
                }
            }
        }
Ejemplo n.º 2
0
        public void MigrateToLatestVersion_HasCurrentVersion_Throws()
        {
            string path = null;

            try
            {
                path = TempOxesFiles.MinimalValidFile(null);
                Migrator.MigrateToLatestVersion(path);
            }
            finally
            {
                if (!String.IsNullOrEmpty(path))
                {
                    File.Delete(path);
                }
            }
        }
Ejemplo n.º 3
0
        public void Validate_MinimalFile_Succeeds()
        {
            string path = TempOxesFiles.MinimalValidFile(null);

            ValidateAndDelete(path, true);
        }