aboutsummaryrefslogtreecommitdiff
path: root/Aggregator
diff options
context:
space:
mode:
Diffstat (limited to 'Aggregator')
-rw-r--r--Aggregator/Tests/DownloadTests.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Aggregator/Tests/DownloadTests.cs b/Aggregator/Tests/DownloadTests.cs
index 9a3bbc1..b45adc9 100644
--- a/Aggregator/Tests/DownloadTests.cs
+++ b/Aggregator/Tests/DownloadTests.cs
@@ -1,4 +1,6 @@
using System;
+using System.Xml;
+using System.Xml.Linq;
using Classes;
using Parser;
using Xunit;
@@ -10,6 +12,7 @@ namespace Tests {
string xml = Download.DownloadXMLSync("http://feeds.bbci.co.uk/news/rss.xml");
Assert.True(xml != null);
Assert.True(xml != " ");
+ Assert.True(XDocument.Parse(xml) != null);
}
[Fact]
@@ -17,6 +20,7 @@ namespace Tests {
string xml = await Download.DownloadXML("http://feeds.bbci.co.uk/news/rss.xml");
Assert.True(xml != null);
Assert.True(xml != " ");
+ Assert.True(XDocument.Parse(xml) != null);
}
}
}