コード例 #1
0
 public void TestIncorrectSize()
 {
     var download = new DownloadMemory(Server.FileUri, bytesTotal: 1024);
     download.Invoking(x => x.Run()).ShouldThrow<WebException>();
 }
コード例 #2
0
        public void TestIncorrectSize()
        {
            var download = new DownloadMemory(Server.FileUri, bytesTotal: 1024);

            download.Invoking(x => x.Run()).ShouldThrow <WebException>();
        }
コード例 #3
0
 public void TestFileMissing()
 {
     var download = new DownloadMemory(new Uri(Server.ServerUri, "wrong"));
     download.Invoking(x => x.Run()).ShouldThrow<WebException>();
 }
コード例 #4
0
        public void TestFileMissing()
        {
            var download = new DownloadMemory(new Uri(Server.ServerUri, "wrong"));

            download.Invoking(x => x.Run()).ShouldThrow <WebException>();
        }