mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
added nzbx integration tests.
This commit is contained in:
parent
a1783a53a9
commit
797f2fcacc
@ -1,22 +0,0 @@
|
|||||||
using NzbDrone.Core.Indexers;
|
|
||||||
using NzbDrone.Core.Indexers.Nzbx;
|
|
||||||
using NzbDrone.Core.Test.Framework;
|
|
||||||
using NUnit.Framework;
|
|
||||||
|
|
||||||
namespace NzbDrone.Core.Test.IndexerTests.IntegerationTests
|
|
||||||
{
|
|
||||||
public class NzbxIntegerationTests : CoreTest<FetchFeedService>
|
|
||||||
{
|
|
||||||
|
|
||||||
[Test]
|
|
||||||
public void should_be_able_to_fetch_rss()
|
|
||||||
{
|
|
||||||
UseRealHttp();
|
|
||||||
|
|
||||||
var indexer = new Nzbx();
|
|
||||||
|
|
||||||
Subject.FetchRss(indexer);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
@ -0,0 +1,28 @@
|
|||||||
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -132,7 +132,7 @@
|
|||||||
<Compile Include="Framework\NBuilderExtensions.cs" />
|
<Compile Include="Framework\NBuilderExtensions.cs" />
|
||||||
<Compile Include="IndexerSearchTests\SearchDefinitionFixture.cs" />
|
<Compile Include="IndexerSearchTests\SearchDefinitionFixture.cs" />
|
||||||
<Compile Include="IndexerTests\BasicRssParserFixture.cs" />
|
<Compile Include="IndexerTests\BasicRssParserFixture.cs" />
|
||||||
<Compile Include="IndexerTests\IntegerationTests\NzbxIntegerationTests.cs" />
|
<Compile Include="IndexerTests\IntegrationTests\NzbxIntegerationTests.cs" />
|
||||||
<Compile Include="IndexerTests\ParserTests\NzbxParserFixture.cs" />
|
<Compile Include="IndexerTests\ParserTests\NzbxParserFixture.cs" />
|
||||||
<Compile Include="JobTests\JobRepositoryFixture.cs" />
|
<Compile Include="JobTests\JobRepositoryFixture.cs" />
|
||||||
<Compile Include="JobTests\RenameSeasonJobFixture.cs" />
|
<Compile Include="JobTests\RenameSeasonJobFixture.cs" />
|
||||||
|
Loading…
Reference in New Issue
Block a user