public async Task DownloadFile()
        {
            var updater = new ApplicationUpdater(typeof(Program));
            updater.DownloadProgressChanged += updater_DownloadProgressChanged;

            File.Delete(updater.DownloadStoragePath);

            Assert.IsTrue(await updater.DownloadAsync());
            Assert.IsTrue(File.Exists(updater.DownloadStoragePath));
        }
Exemplo n.º 2
0
        public async Task DownloadFile()
        {
            var updater = new ApplicationUpdater(typeof(Program));

            updater.DownloadProgressChanged += updater_DownloadProgressChanged;

            File.Delete(updater.DownloadStoragePath);

            Assert.IsTrue(await updater.DownloadAsync());
            Assert.IsTrue(File.Exists(updater.DownloadStoragePath));
        }