internal bool Execute() { CustomAsserts.AssertDeleteFile(_application.Settings.Backup.LogFile); SetupEnvironment(); if (!BackupEnvironment()) { return(false); } DeleteEnvironment(); RestoreEnvironment(); ConfirmRestore(); Directory.Delete(_backupDir, true); return(true); }
public static void DeleteEventLog() { CustomAsserts.AssertDeleteFile(GetEventLogFileName()); }