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

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

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