Exemplo n.º 1
0
        public void WebDownloadExecute()
        {
            task.FileUri = "http://www.microsoft.com/default.aspx";
            string downloadFile = Path.Combine(testDirectory, "microsoft.html");

            task.FileName = downloadFile;

            Assert.IsTrue(task.Execute(), "Execute Failed");
            Assert.IsTrue(File.Exists(downloadFile), "No download file");
        }
Exemplo n.º 2
0
        public void WebDownloadExecute()
        {
            WebDownload task = new WebDownload();
            task.BuildEngine = new MockBuild();
            task.FileUri = "http://www.microsoft.com/default.aspx";
            string downloadFile = Path.Combine(testDirectory, "microsoft.html");
            task.FileName = downloadFile;
            Assert.IsTrue(task.Execute(), "Execute Failed");

            Assert.IsTrue(File.Exists(downloadFile), "No download file");
        }