コード例 #1
0
ファイル: DownloadFileTest.cs プロジェクト: isaveu/common
        public void TestFileMissing()
        {
            var download = new DownloadFile(new Uri(Server.ServerUri, "wrong"), _tempFile);

            download.Invoking(x => x.Run()).ShouldThrow <WebException>();
        }
コード例 #2
0
ファイル: DownloadFileTest.cs プロジェクト: nano-byte/common
 public void TestIncorrectSize()
 {
     var download = new DownloadFile(Server.FileUri, _tempFile, bytesTotal: 1024);
     download.Invoking(x => x.Run()).ShouldThrow<WebException>();
 }
コード例 #3
0
ファイル: DownloadFileTest.cs プロジェクト: isaveu/common
        public void TestIncorrectSize()
        {
            var download = new DownloadFile(Server.FileUri, _tempFile, bytesTotal: 1024);

            download.Invoking(x => x.Run()).ShouldThrow <WebException>();
        }
コード例 #4
0
ファイル: DownloadFileTest.cs プロジェクト: nano-byte/common
 public void TestFileMissing()
 {
     var download = new DownloadFile(new Uri(Server.ServerUri, "wrong"), _tempFile);
     download.Invoking(x => x.Run()).ShouldThrow<WebException>();
 }