public void CheckAndDownloadInstallerTest() { mmApp.Configuration.ApplicationUpdates.LastUpdateCheck = DateTime.Now.AddDays(-8); mmApp.Configuration.ApplicationUpdates.UpdateFrequency = 3; var updater = new ApplicationUpdater("0.11"); if (File.Exists(updater.DownloadStoragePath)) { File.Delete(updater.DownloadStoragePath); } updater.CheckDownloadExecute(true); Assert.IsTrue(File.Exists(updater.DownloadStoragePath), "File should have been downloaded to download path"); }