2013-04-28 03:49:36 +03:00
|
|
|
using FluentAssertions;
|
|
|
|
using NzbDrone.Core.Indexers;
|
2013-05-03 02:06:08 +03:00
|
|
|
using NzbDrone.Core.Indexers.NzbClub;
|
2013-04-28 03:49:36 +03:00
|
|
|
using NzbDrone.Core.Test.Framework;
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Test.IndexerTests.IntegrationTests
|
|
|
|
{
|
2013-05-03 02:06:08 +03:00
|
|
|
public class NzbClubIntegrationTests : CoreTest<FetchFeedService>
|
2013-04-28 03:49:36 +03:00
|
|
|
{
|
|
|
|
[Test]
|
|
|
|
public void should_be_able_to_fetch_rss()
|
|
|
|
{
|
|
|
|
UseRealHttp();
|
|
|
|
|
2013-05-03 02:06:08 +03:00
|
|
|
var indexer = new NzbClub();
|
2013-04-28 03:49:36 +03:00
|
|
|
|
|
|
|
var result = Subject.FetchRss(indexer);
|
|
|
|
|
|
|
|
result.Should().NotBeEmpty();
|
|
|
|
result.Should().OnlyContain(c => !string.IsNullOrWhiteSpace(c.Title));
|
|
|
|
result.Should().OnlyContain(c => !string.IsNullOrWhiteSpace(c.NzbUrl));
|
2013-05-03 07:37:08 +03:00
|
|
|
|
|
|
|
//TODO: uncomment these after moving to restsharp for rss
|
|
|
|
//result.Should().OnlyContain(c => !string.IsNullOrWhiteSpace(c.NzbInfoUrl));
|
|
|
|
//result.Should().OnlyContain(c => c.Size > 0);
|
|
|
|
|
2013-04-28 03:49:36 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|