|
|
|
@ -136,12 +136,21 @@ namespace NzbDrone.Core.Test.IndexerTests.TorznabTests
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
public void should_use_pagesize_reported_by_caps()
|
|
|
|
|
public void should_use_best_pagesize_reported_by_caps()
|
|
|
|
|
{
|
|
|
|
|
_caps.MaxPageSize = 30;
|
|
|
|
|
_caps.DefaultPageSize = 25;
|
|
|
|
|
|
|
|
|
|
Subject.PageSize.Should().Be(25);
|
|
|
|
|
Subject.PageSize.Should().Be(30);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
public void should_not_use_pagesize_over_100_even_if_reported_in_caps()
|
|
|
|
|
{
|
|
|
|
|
_caps.MaxPageSize = 250;
|
|
|
|
|
_caps.DefaultPageSize = 25;
|
|
|
|
|
|
|
|
|
|
Subject.PageSize.Should().Be(100);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[TestCase("http://localhost:9117/", "/api")]
|
|
|
|
|