Added tests and refactored TorrentRss code.

This commit is contained in:
Taloth Saldono
2015-05-14 22:57:45 +02:00
parent 9d7522cc15
commit ba2da07c2f
71 changed files with 1188 additions and 5435 deletions
@@ -31,7 +31,7 @@ namespace NzbDrone.Core.Test.IndexerTests.TorznabTests
[Test]
public void should_parse_recent_feed_from_torznab_hdaccess_net()
{
var recentFeed = ReadAllText(@"Files/RSS/torznab_hdaccess_net.xml");
var recentFeed = ReadAllText(@"Files/Indexers/Torznab/torznab_hdaccess_net.xml");
Mocker.GetMock<IHttpClient>()
.Setup(o => o.Execute(It.Is<HttpRequest>(v => v.Method == HttpMethod.GET)))
@@ -61,7 +61,7 @@ namespace NzbDrone.Core.Test.IndexerTests.TorznabTests
[Test]
public void should_parse_recent_feed_from_torznab_tpb()
{
var recentFeed = ReadAllText(@"Files/RSS/torznab_tpb.xml");
var recentFeed = ReadAllText(@"Files/Indexers/Torznab/torznab_tpb.xml");
Mocker.GetMock<IHttpClient>()
.Setup(o => o.Execute(It.Is<HttpRequest>(v => v.Method == HttpMethod.GET)))