mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-23 22:25:09 -04:00
fixed nzbclub parser.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using FluentAssertions;
|
||||
using Moq;
|
||||
@@ -17,21 +18,21 @@ namespace NzbDrone.Core.Test.IndexerTests
|
||||
{
|
||||
public class IndexerServiceFixture : DbTest<IndexerService, IndexerDefinition>
|
||||
{
|
||||
private List<IIndexer> _indexers;
|
||||
private List<Func<IIndexer>> _indexers;
|
||||
|
||||
[SetUp]
|
||||
public void Setup()
|
||||
{
|
||||
_indexers = new List<IIndexer>();
|
||||
_indexers = new List<Func<IIndexer>>();
|
||||
|
||||
_indexers.Add(new Newznab());
|
||||
_indexers.Add(new Nzbsrus());
|
||||
_indexers.Add(new NzbClub());
|
||||
_indexers.Add(new NzbIndex());
|
||||
_indexers.Add(new Omgwtfnzbs());
|
||||
_indexers.Add(new Wombles());
|
||||
_indexers.Add(() => new Newznab());
|
||||
_indexers.Add(() => new Nzbsrus());
|
||||
_indexers.Add(() => new NzbClub());
|
||||
_indexers.Add(() => new NzbIndex());
|
||||
_indexers.Add(() => new Omgwtfnzbs());
|
||||
_indexers.Add(() => new Wombles());
|
||||
|
||||
Mocker.SetConstant<IEnumerable<IIndexer>>(_indexers);
|
||||
Mocker.SetConstant<IEnumerable<Func<IIndexer>>>(_indexers);
|
||||
|
||||
}
|
||||
|
||||
@@ -66,7 +67,6 @@ namespace NzbDrone.Core.Test.IndexerTests
|
||||
indexers.Should().NotContain(c => c.Name == null);
|
||||
indexers.Select(c => c.Name).Should().OnlyHaveUniqueItems();
|
||||
indexers.Select(c => c.Instance).Should().OnlyHaveUniqueItems();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user