public void TestFileMissing() { var download = new DownloadFile(new Uri(Server.ServerUri, "wrong"), _tempFile); download.Invoking(x => x.Run()).ShouldThrow <WebException>(); }
public void TestIncorrectSize() { var download = new DownloadFile(Server.FileUri, _tempFile, bytesTotal: 1024); download.Invoking(x => x.Run()).ShouldThrow<WebException>(); }
public void TestIncorrectSize() { var download = new DownloadFile(Server.FileUri, _tempFile, bytesTotal: 1024); download.Invoking(x => x.Run()).ShouldThrow <WebException>(); }
public void TestFileMissing() { var download = new DownloadFile(new Uri(Server.ServerUri, "wrong"), _tempFile); download.Invoking(x => x.Run()).ShouldThrow<WebException>(); }