blob: 9a3bbc1e0af0c2cc503812ed89562f298a651fcb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
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);
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 != " ");
}
}
}
|