private void downloadButton_Click(object sender, EventArgs e) { string url = this.URLBox.Text; URLDownloader downloader = new URLDownloader(url); this.URLResult.Text = downloader.getURLString(); }
public void TestBadURL() { URLDownloader downloader = new URLDownloader("This isnt a URL"); Assert.IsNull(downloader.getURLString()); }
public void TestBasicURL() { URLDownloader downloader = new URLDownloader("http://wsu.edu"); Assert.IsNotNull(downloader.getURLString()); }