mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
28 lines
854 B
C#
28 lines
854 B
C#
using FluentAssertions;
|
|
using NzbDrone.Core.Indexers;
|
|
using NzbDrone.Core.Indexers.Nzbx;
|
|
using NzbDrone.Core.Test.Framework;
|
|
using NUnit.Framework;
|
|
|
|
namespace NzbDrone.Core.Test.IndexerTests.IntegrationTests
|
|
{
|
|
public class NzbxIntegrationTests : CoreTest<FetchFeedService>
|
|
{
|
|
[Test]
|
|
public void should_be_able_to_fetch_rss()
|
|
{
|
|
UseRealHttp();
|
|
|
|
var indexer = new Nzbx();
|
|
|
|
var result = Subject.FetchRss(indexer);
|
|
|
|
result.Should().NotBeEmpty();
|
|
result.Should().OnlyContain(c => !string.IsNullOrWhiteSpace(c.Title));
|
|
result.Should().OnlyContain(c => !string.IsNullOrWhiteSpace(c.NzbInfoUrl));
|
|
result.Should().OnlyContain(c => !string.IsNullOrWhiteSpace(c.NzbUrl));
|
|
result.Should().OnlyContain(c => c.Size > 0);
|
|
}
|
|
|
|
}
|
|
} |