From be6a1f89d2156478de91fb5dc8de612db7a06763 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Sat, 2 Feb 2019 13:58:00 +0000 Subject: Added tests for DownloadXMLSync --- Aggregator/Tests/DownloadTests.cs | 15 +++++++++++++++ Aggregator/Tests/UnitTest1.cs | 11 ----------- 2 files changed, 15 insertions(+), 11 deletions(-) create mode 100644 Aggregator/Tests/DownloadTests.cs delete mode 100644 Aggregator/Tests/UnitTest1.cs (limited to 'Aggregator/Tests') diff --git a/Aggregator/Tests/DownloadTests.cs b/Aggregator/Tests/DownloadTests.cs new file mode 100644 index 0000000..2e8528a --- /dev/null +++ b/Aggregator/Tests/DownloadTests.cs @@ -0,0 +1,15 @@ +using System; +using Classes; +using Parser; +using Xunit; + +namespace Tests { + public class DownloadTests { + [Fact] + public void Test_DownloadXMLSync() { + string xml = Download.DownloadXMLSync("http://feeds.bbci.co.uk/news/rss.xml"); + Assert.True(xml != null); + Console.WriteLine(xml); + } + } +} diff --git a/Aggregator/Tests/UnitTest1.cs b/Aggregator/Tests/UnitTest1.cs deleted file mode 100644 index 29d2d62..0000000 --- a/Aggregator/Tests/UnitTest1.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System; -using Xunit; - -namespace Tests { - public class UnitTest1 { - [Fact] - public void Test1() { - - } - } -} -- cgit v1.2.3-13-gbd6f