Пример #1
0
        public void TestFileMissing()
        {
            var download = new DownloadFile(new Uri(Server.ServerUri, "wrong"), _tempFile);

            download.Invoking(x => x.Run()).ShouldThrow <WebException>();
        }
Пример #2
0
 public void TestIncorrectSize()
 {
     var download = new DownloadFile(Server.FileUri, _tempFile, bytesTotal: 1024);
     download.Invoking(x => x.Run()).ShouldThrow<WebException>();
 }
Пример #3
0
        public void TestIncorrectSize()
        {
            var download = new DownloadFile(Server.FileUri, _tempFile, bytesTotal: 1024);

            download.Invoking(x => x.Run()).ShouldThrow <WebException>();
        }
Пример #4
0
 public void TestFileMissing()
 {
     var download = new DownloadFile(new Uri(Server.ServerUri, "wrong"), _tempFile);
     download.Invoking(x => x.Run()).ShouldThrow<WebException>();
 }