aboutsummaryrefslogtreecommitdiff
path: root/Aggregator/Tests/DownloadTests.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Aggregator/Tests/DownloadTests.cs')
-rw-r--r--Aggregator/Tests/DownloadTests.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/Aggregator/Tests/DownloadTests.cs b/Aggregator/Tests/DownloadTests.cs
index 2e8528a..9a3bbc1 100644
--- a/Aggregator/Tests/DownloadTests.cs
+++ b/Aggregator/Tests/DownloadTests.cs
@@ -9,7 +9,14 @@ namespace Tests {
public void Test_DownloadXMLSync() {
string xml = Download.DownloadXMLSync("http://feeds.bbci.co.uk/news/rss.xml");
Assert.True(xml != null);
- Console.WriteLine(xml);
+ Assert.True(xml != " ");
+ }
+
+ [Fact]
+ public async void Test_DownloadXML() {
+ string xml = await Download.DownloadXML("http://feeds.bbci.co.uk/news/rss.xml");
+ Assert.True(xml != null);
+ Assert.True(xml != " ");
}
}
}