public void Backup_Restore() { if (!TestHelper.GetDlcPath(out string dlcPath)) { return; } var ope = new UoeDatabaseOperator(dlcPath); var db = GetDb("backuprest"); ope.Copy(db, new UoeDatabaseLocation(Path.Combine(dlcPath, "sports2000"))); Assert.IsTrue(db.Exists()); var backupPath = Path.Combine(TestFolder, "backup.bkp"); ope.Backup(db, backupPath); ope.Delete(db); Assert.IsFalse(db.Exists()); ope.Restore(db, backupPath); Assert.IsTrue(db.Exists()); }