public void download_should_reject_nonexistent_urls(string testUrl) { var service = new FileStore(); Assert.Throws <FileNotFoundException>(() => service.Download(testUrl, Path.GetTempFileName())); }
public void download_should_reject_invalid_urls(string testUrl) { var service = new FileStore(); Assert.Throws <ArgumentException>(() => service.Download(testUrl, Path.GetTempFileName())); }